From bc5392b24c90a9fd7f62d3a881433fe0651981bb Mon Sep 17 00:00:00 2001 From: JF Aubert Date: Tue, 31 Oct 2023 11:04:17 +0100 Subject: [PATCH] [FIX] mrp: fix tracked by products From the backend manufacturing order view, it was no longer possible to specify batches/serial numbers for by-products. Now it is. closes odoo/odoo#140446 Signed-off-by: William Henrotin (whe) --- addons/mrp/views/mrp_production_views.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index caf132c194e..4ccdd01b246 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -419,8 +419,8 @@ help="Displays the consumed Lot/Serial Numbers." groups="stock.group_production_lot" readonly="1" - column_invisible="not parent.show_lot_ids" - invisible="not show_details_visible or parent.state == 'draft'" + column_invisible="not parent.show_lot_ids or parent.state == 'draft'" + invisible="not show_details_visible" options="{'create': [('parent.use_create_components_lots', '!=', False)]}" context="{'default_company_id': company_id, 'default_product_id': product_id}" domain="[('product_id','=',product_id)]"/> @@ -432,7 +432,10 @@ - + @@ -462,8 +465,13 @@