Skip to content
Snippets Groups Projects
Commit 1440ded1 authored by Florian Damhaut's avatar Florian Damhaut
Browse files

[FIX] l10n_it_stock_ddt : fixed ddt report quantity


Currently, DDT use the product_uom_quantity of product for the ddt move which is inaccurate in case of no-backorder change in quantity

The fix correctly check if the done quantity is other than 0 for the delivery and if it is, use it as the delivery quantity

opw-2663174

closes odoo/odoo#78658

X-original-commit: 8678bf38
Signed-off-by: default avatarFlorian D <fdamhaut@users.noreply.github.com>
parent d01c89d8
No related branches found
No related tags found
No related merge requests found
......@@ -107,20 +107,22 @@
<tbody>
<t t-set="total_value" t-value="0"/>
<t t-foreach="o.move_lines" t-as="move">
<tr>
<td>
<span t-field="move.product_id"/>
</td>
<td>
<span t-field="move.product_uom_qty"/>
<span t-field="move.product_uom" groups="uom.group_uom"/>
</td>
<td>
<t t-set="lst_price" t-value="move.product_id.lst_price * move.product_qty"/>
<span t-esc="lst_price" t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
<t t-set="total_value" t-value="total_value + lst_price"/>
</td>
</tr>
<t t-if="move.quantity_done">
<tr>
<td>
<span t-field="move.product_id"/>
</td>
<td>
<span t-field="move.quantity_done"/>
<span t-field="move.product_uom" groups="uom.group_uom"/>
</td>
<td>
<t t-set="lst_price" t-value="move.product_id.lst_price * move.quantity_done"/>
<span t-esc="lst_price" t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
<t t-set="total_value" t-value="total_value + lst_price"/>
</td>
</tr>
</t>
</t>
<tr>
<td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment