[16.0][FIX] rma, change filter of moves to allow select pickings with children of partner selected

This commit is contained in:
Christopher Ormaza
2024-09-16 13:39:36 -05:00
committed by AaronHForgeFlow
parent 117e46c442
commit 0844c39262

View File

@@ -236,7 +236,7 @@
<field <field
name="reference_move_id" name="reference_move_id"
options="{'no_create': True}" options="{'no_create': True}"
domain="[('picking_id.partner_id', '=', partner_id), domain="[('picking_id.partner_id', 'child_of', partner_id),
('location_dest_id.usage', '=', 'customer'), ('location_dest_id.usage', '=', 'customer'),
('state', '=', 'done')]" ('state', '=', 'done')]"
readonly="state not in ['draft']" readonly="state not in ['draft']"
@@ -400,7 +400,7 @@
<field name="reference_move_id" position="attributes"> <field name="reference_move_id" position="attributes">
<attribute <attribute
name="domain" name="domain"
>[('picking_id.partner_id', '=', partner_id), >[('picking_id.partner_id', 'child_of', partner_id),
('location_id.usage', '=', 'supplier'), ('location_id.usage', '=', 'supplier'),
('state', '=', 'done')]</attribute> ('state', '=', 'done')]</attribute>
</field> </field>