Skip to content
Extraits de code Groupes Projets
Valider 4bcfa5c8 rédigé par jordan's avatar jordan
Parcourir les fichiers

[fix] readonly = false on stock_move_line expiration_date

parent 2009c99e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter