diff --git a/views/stock_move_line.xml b/views/stock_move_line.xml index 5af70f38deddafe4935f9a80659457f5d238817e..68c3a02f3e7df1b60e7925ec81cfa58cf9b51f5a 100644 --- a/views/stock_move_line.xml +++ b/views/stock_move_line.xml @@ -15,7 +15,8 @@ </field> <xpath expr="//field[@name='expiration_date']" position="attributes"> <attribute name="string">DLC</attribute> - <attribute name="attrs">{'column_invisible': [('parent.show_lots_text', '=', True)], 'readonly': [('picking_type_use_existing_lots', '=', True)]}</attribute> + <attribute name="readonly">0</attribute> + <attribute name="attrs">{'column_invisible': [('parent.show_lots_text', '=', True)]}</attribute> <attribute name="widget">date</attribute> </xpath> </field> @@ -30,6 +31,12 @@ <field name="lot_id" position="attributes"> <attribute name="context">{'default_product_id': parent.product_id, 'default_company_id': parent.company_id, 'active_picking_id': picking_id, 'show_qty': True}</attribute> </field> + <xpath expr="//field[@name='expiration_date']" position="attributes"> + <attribute name="string">DLC</attribute> + <attribute name="readonly">0</attribute> + <attribute name="attrs">{'column_invisible': [('parent.show_lots_text', '=', True)]}</attribute> + <attribute name="widget">date</attribute> + </xpath> </field> </record>