Server IP : 127.0.0.2 / Your IP : 18.227.111.102 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/mrp/report/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <template id="mrp_bom_cost_report"> <t t-call="report.html_container"> <t t-foreach="lines" t-as="line"> <t t-call="report.internal_layout"> <div class="page"> <t t-set="currency" t-value="line['currency']"/> <table class="table table-condensed"> <thead> <tr> <th colspan="6"> <h1><t t-esc="line['name']"/></h1><br/> <b><t t-esc="line['product_uom_qty']"/> <t t-esc="line['product_uom'].name"/></b> <table> <tbody> <tr t-foreach="line['attributes']" t-as="attrib"> <td><span t-esc="attrib[0]"/></td> <td><span t-esc="attrib[1]"/></td> </tr> </tbody> </table> <h2>Cost Structure</h2> </th> </tr> <tr> <th colspan="3">Raw Materials</th> <th class="col-sm-2 text-right">Quantity</th> <th class="col-sm-2 text-right">Unit Cost</th> <th class="col-sm-2 text-right">Total Cost</th> </tr> </thead> <tbody> <tr t-foreach="line['lines']" t-as="bom_line"> <td colspan="3"> <span t-att-res-id="bom_line['product_id'].id" res-model="product.product" view-type="form" t-esc="bom_line['product_id'].name"/> </td> <td class="text-right"> <span t-esc="bom_line['product_uom_qty']"/> <span t-esc="bom_line['product_uom'].name" groups="product.group_uom"/> </td> <td class="text-right"> <span t-esc="bom_line['price_unit']" t-options='{"widget": "monetary", "display_currency": currency}'/> </td> <td class="text-right"> <span t-esc="bom_line['total_price']" t-options='{"widget": "monetary", "display_currency": currency}'/> </td> </tr> <tr> <th colspan="5" class="text-right">Total Cost of Raw Materials</th> <th class="text-right"> <span t-esc="line['total']" t-options='{"widget": "monetary", "display_currency": currency}'/> </th> </tr> </tbody> </table> </div> </t> </t> </t> </template> </odoo>