| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<template id="stock_account_report_invoice_document" inherit_id="account.report_invoice_document"> |
| 4 |
<xpath expr="//div[@id='right-elements']" position="after"> |
| 5 |
<t groups="stock_account.group_lot_on_invoice"> |
| 6 |
<t t-set="lot_values" t-value="o._get_invoiced_lot_values()"/> |
| 7 |
<div t-if="not lot_values" class="oe_structure">​</div> |
| 8 |
<table t-else="" class="table table-sm mt-2" style="width: 50%;" name="invoice_snln_table"> |
| 9 |
<thead> |
| 10 |
<tr> |
| 11 |
<th><span>Product</span></th> |
| 12 |
<th class="text-end"><span>Quantity</span></th> |
| 13 |
<th class="text-end"><span>SN/LN</span></th> |
| 14 |
</tr> |
| 15 |
</thead> |
| 16 |
<tbody> |
| 17 |
<tr t-foreach="lot_values" t-as="snln_line"> |
| 18 |
<td><t t-esc="snln_line['product_name']">Bacon</t></td> |
| 19 |
<td class="text-end"> |
| 20 |
<t t-esc="snln_line['quantity']">6.00</t> |
| 21 |
<t t-esc="snln_line['uom_name']" groups="uom.group_uom">units</t> |
| 22 |
</td> |
| 23 |
<td><t class="text-end" t-esc="snln_line['lot_name']">BC46282798</t></td> |
| 24 |
</tr> |
| 25 |
</tbody> |
| 26 |
</table> |
| 27 |
</t> |
| 28 |
</xpath> |
| 29 |
</template> |
| 30 |
</odoo> |