[FIX] rma_sale_mrp: sale wizard line edition

Whenever we tried to edit a line belonging to a kit we couldn't finsish
the RMA. The wizard view was unwittingly requiring this field which for
the kit line shouldn't be required.

TT45051
This commit is contained in:
David
2023-09-14 11:17:05 +02:00
parent d19e5e6f7b
commit 9bf00c5630

View File

@@ -11,8 +11,9 @@
<xpath expr="//tree/field[@name='picking_id']" position="attributes">
<attribute
name="attrs"
>{'readonly': [('phantom_kit_line', '=', True)]}</attribute>
>{'readonly': [('phantom_kit_line', '=', True)], 'required': [('phantom_kit_line', '=', False)]}</attribute>
<attribute name="force_save">1</attribute>
<attribute name="required" />
</xpath>
</field>
</record>