From 4bcfa5c8f4951e88754e1f256e343be16e3e98bb Mon Sep 17 00:00:00 2001 From: jordan <jordan@le-filament.com> Date: Thu, 30 Sep 2021 16:49:28 +0200 Subject: [PATCH] [fix] readonly = false on stock_move_line expiration_date --- views/stock_move_line.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/views/stock_move_line.xml b/views/stock_move_line.xml index 5af70f3..68c3a02 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> -- GitLab