[FIX] mrp: correct barcodes on production order report
Steps to reproduce: - Inventory app > Settings > enable barcode scanner - Manufacturing app > Create a new manufacturing order - Under components, add a product that has a barcode - Save > Print > Production order The barcodes of the products on the report all encode the same (incorrect) value, which is the manufacturing order name. This commit changes the barcode value to the corresponding barcode string of the products. opw-2930848 closes odoo/odoo#97968 X-original-commit: 71d4d977d42e69e8e3d7e069098707b84812ee07 Signed-off-by: Adrien Widart <awt@odoo.com> Signed-off-by: stcc-odoo <stcc@odoo.com>
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
</td>
|
||||
<td t-if="has_product_barcode" width="15%" class="text-center">
|
||||
<t t-if="raw_line.product_id.barcode">
|
||||
<div t-field="o.name" t-options="{'widget': 'barcode', 'width': 600, 'height': 100, 'img_style': 'width:100%;height:35px'}"/>
|
||||
<div t-field="raw_line.product_id.barcode" t-options="{'widget': 'barcode', 'width': 600, 'height': 100, 'img_style': 'width:100%;height:35px'}"/>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user