Skip to content
Snippets Groups Projects
Commit 28778f93 authored by Katherine Zaoral's avatar Katherine Zaoral Committed by William Henrotin
Browse files

[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#110035

X-original-commit: d3350522
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent fa42ee1a
Branches
Tags
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment