[FIX] sale_stock: invoice reporte lot_values
Before this change, the lots info of the products that are shown in the invoice report were always computed, no matter if they were printed or not. It is always computing the lots information, no matter if it will be printed or not With this change, the lost info only is computed when is actually used and will be printed: that is when the user has the sale_stock.group_lot_on_invoice group. closes odoo/odoo#110326 X-original-commit: 28778f93dd92d1e460f1d816323b57792907f7c3 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
committed by
William Henrotin
parent
fe03a58e62
commit
7c7ea74fcb
@@ -2,10 +2,11 @@
|
||||
<odoo>
|
||||
<template id="stock_account_report_invoice_document" inherit_id="account.report_invoice_document">
|
||||
<xpath expr="//div[@id='total']" position="after">
|
||||
<t groups="stock_account.group_lot_on_invoice">
|
||||
<t t-set="lot_values" t-value="o._get_invoiced_lot_values()"/>
|
||||
<t t-if="lot_values">
|
||||
<br/>
|
||||
<table groups="stock_account.group_lot_on_invoice" class="table table-sm" style="width: 50%;" name="invoice_snln_table">
|
||||
<table class="table table-sm" style="width: 50%;" name="invoice_snln_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span>Product</span></th>
|
||||
@@ -27,6 +28,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</t>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user