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 @@