Server IP : 127.0.0.2 / Your IP : 3.145.83.240 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_repair/report/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <template id="report_mrprepairorder"> <t t-foreach="docs" t-as="o"> <t t-call="report.external_layout"> <t t-set="o" t-value="o.with_context({'lang': o.partner_id.lang})" /> <div class="page"> <div class="oe_structure"/> <div class="row"> <div class="col-xs-6"> <strong t-if="o.address_id == o.partner_invoice_id">Invoice and shipping address:</strong> <div t-if="o.partner_invoice_id"> <strong t-if="o.address_id != o.partner_invoice_id">Invoice address: </strong> <div t-field="o.partner_invoice_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="o.partner_invoice_id.vat">VAT: <span t-field="o.partner_invoice_id.vat"/></p> </div> <div t-if="o.address_id != o.partner_invoice_id"> <strong>Shipping address :</strong> <div t-field="o.address_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'/> <p t-if="o.address_id.vat">VAT: <span t-field="o.address_id.vat"/></p> </div> </div> <div class="col-xs-5 col-xs-offset-1"> <div t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /> </div> </div> <h2> <span t-if="o.state != 'draft'">Repair Order #:</span> <span t-if="o.state == 'draft'">Repair Quotation #:</span> <span t-field="o.name"/> </h2> <div class="row mt32 mb32"> <div t-if="o.product_id.name" class="col-xs-3"> <strong>Product to Repair:</strong> <p t-field="o.product_id.name"/> </div> <div class="col-xs-3" groups="stock.group_production_lot"> <strong>Lot Number</strong> <t t-if="o.lot_id"> <span t-field="o.lot_id.name"/> </t> </div> <div t-if="o.guarantee_limit" class="col-xs-3"> <strong>Guarantee Limit:</strong> <p t-field="o.guarantee_limit"/> </div> <div class="col-xs-3"> <strong>Printing Date:</strong> <p t-esc="time.strftime('%Y-%m-%d')"/> </div> </div> <table class="table table-condensed"> <thead> <tr> <th>Description</th> <th class="text-center">Tax</th> <th class="text-right">Quantity</th> <th class="text-right">Unit Price</th> <th class="text-right">Price</th> </tr> </thead> <tbody> <t t-if="o.operations"> <tr><td colspan="5"><strong>Operation Line(s)</strong></td></tr> <tr t-foreach="o.operations" t-as="line"> <t t-if="(line.to_invoice is True)"> <td> <p t-if="line.type == 'add'"><i>(Add)</i> <span t-field="line.name" /></p> <p t-if="line.type == 'remove'">(<i>Remove</i>) <span t-field="line.name"/></p> </td> <td class="text-center"> <span t-esc="','.join(map( lambda x: x.name, line.tax_id))"/> </td> <td class="text-right"> <span t-field="line.product_uom_qty"/> <span groups="product.group_uom" t-field="line.product_uom.name"/> </td> <td class="text-right"> <span t-field="line.price_unit"/> </td> <td class="text-right"> <span t-field="line.price_subtotal" t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> </td> </t> </tr> </t> <t t-if="o.fees_lines"> <tr><td colspan="5"><strong>Fees Line(s)</strong></td></tr> <tr t-foreach="o.fees_lines" t-as="fees"> <t t-if="fees.to_invoice is True"> <td> <span t-field="fees.name"/> </td> <td class="text-center"> <span t-esc="','.join(map( lambda x: x.name, fees.tax_id))"/> </td> <td class="text-right"> <span t-field="fees.product_uom_qty"/> <span groups="product.group_uom" t-field="fees.product_uom.name"/> </td> <td class="text-right"> <span t-field="fees.price_unit"/> </td> <td class="text-right"> <span t-field="fees.price_subtotal" t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> </td> </t> </tr> </t> </tbody> </table> <div class="row"> <div class="col-xs-4 pull-right"> <table class="table table-condensed"> <tr class="border-black"> <td><strong>Total Without Taxes</strong></td> <td class="text-right"> <span t-field="o.amount_untaxed" t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> </td> </tr> <tr> <td>Taxes</td> <td class="text-right"> <span t-field="o.amount_tax" t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> </td> </tr> <tr class="border-black"> <td><strong>Total</strong></td> <td class="text-right"> <span t-field="o.amount_total" t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/> </td> </tr> </table> </div> </div> <p t-field="o.quotation_notes"/> <div class="oe_structure"/> </div> </t> </t> </template> <template id="report_mrprepairorder2"> <t t-call="report.html_container"> <t t-foreach="docs" t-as="doc"> <t t-call="mrp_repair.report_mrprepairorder" t-lang="doc.partner_id.lang"/> </t> </t> </template> </data> </odoo>