mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[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:
@@ -11,8 +11,9 @@
|
|||||||
<xpath expr="//tree/field[@name='picking_id']" position="attributes">
|
<xpath expr="//tree/field[@name='picking_id']" position="attributes">
|
||||||
<attribute
|
<attribute
|
||||||
name="attrs"
|
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="force_save">1</attribute>
|
||||||
|
<attribute name="required" />
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user