Server IP : 127.0.0.2 / Your IP : 3.22.98.193 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/odoo/addons/product/report/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <template id="report_pricelist"> <t t-call="report.html_container"> <t t-call="report.internal_layout"> <div class="page"> <h2>Price List</h2> <div class="row mt32 mb32"> <div class="col-xs-3"> <strong>Price List Name</strong>:<br/> <span t-esc="data['pricelist'].name"/> </div> <div class="col-xs-3"> <strong>Currency</strong>:<br/> <span t-esc="data['pricelist'].currency_id.name"/> </div> <div class="col-xs-3"> <strong>Print date</strong>:<br/> <t t-esc="datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')"/> </div> </div> <table class="table table-condensed"> <thead> <tr> <th> <strong>Description</strong> </th> <t t-foreach="data['quantities']" t-as="quantity"> <th><strong t-esc="'%s units' % quantity"/></th> </t> </tr> </thead> <tbody> <t t-foreach="data['categories_data']" t-as="categ_data"> <tr> <td colspan="100"> <strong t-esc="categ_data['category'].name"/> </td> </tr> <tr t-foreach="categ_data['products']" t-as="product"> <td> <t t-if="product.code"> [<span t-esc="product.code"/>] </t> <span t-esc="product.name"/> </td> <t t-foreach="data['quantities']" t-as="quantity"> <td><strong t-esc="categ_data['prices'][product.id][quantity]" t-esc-options="{ 'widget': 'monetary', 'display_currency': data['pricelist'].currency_id}"/> </td> </t> </tr> </t> </tbody> </table> </div> </t> </t> </template> </odoo>