[FIX] stock: correct field reference in stock report template

Issue:
- when attempting to download the Picking Operations report for a
product with packaging, the report generation fails with an error.

Steps to Reproduce:
- Configure a product to include packaging details.
- Create a new quotation with the packaged product, and confirm it.
- Proceed to validate the delivery.
- In actions click on 'Print' > 'Picking Operations'.
- Notice the error.

Solution:
- Update the field product_packaging_quantity to the correct field name
product_packaging_qty.

OPW-3643483

closes odoo/odoo#147692

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
kdeb@odoo.com
2024-01-12 11:17:59 +00:00
parent b1772206b4
commit a04d5f1e23
@@ -122,7 +122,7 @@
(<span t-field="ml.product_packaging_qty" t-options='{"widget": "integer"}'/> <span t-field="ml.move_id.product_packaging_id.name"/>)
</span>
<span t-if="o.state == 'done'">
(<span t-field="ml.product_packaging_quantity" t-options='{"widget": "integer"}'/> <span t-field="ml.move_id.product_packaging_id.name"/>)
(<span t-field="ml.product_packaging_qty" t-options='{"widget": "integer"}'/> <span t-field="ml.move_id.product_packaging_id.name"/>)
</span>
</span>
</td>