diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/sale_stock/views/report_invoice.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/sale_stock/views/report_invoice.xml')
| -rw-r--r-- | addons/sale_stock/views/report_invoice.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/addons/sale_stock/views/report_invoice.xml b/addons/sale_stock/views/report_invoice.xml new file mode 100644 index 00000000..0e12889a --- /dev/null +++ b/addons/sale_stock/views/report_invoice.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <template id="sale_stock_report_invoice_document" inherit_id="account.report_invoice_document"> + <xpath expr="//div[@id='total']" position="after"> + <t t-set="lot_values" t-value="o._get_invoiced_lot_values()"/> + <t t-if="lot_values"> + <br/> + <table groups="sale_stock.group_lot_on_invoice" class="table table-sm" style="width: 50%;" name="invoice_snln_table"> + <thead> + <tr> + <th><span>Product</span></th> + <th class="text-right"><span>Quantity</span></th> + <th class="text-right"><span>SN/LN</span></th> + </tr> + </thead> + <tbody> + <t t-foreach="lot_values" t-as="snln_line"> + <tr> + <td><t t-esc="snln_line['product_name']"/></td> + <td class="text-right"> + <t t-esc="snln_line['quantity']"/> + <t t-esc="snln_line['uom_name']" groups="uom.group_uom"/> + </td> + <td class="text-right"><t t-esc="snln_line['lot_name']"/></td> + </tr> + </t> + </tbody> + </table> + </t> + </xpath> + </template> +</odoo> |
