Skip to Content
मेन्यू
This question has been flagged
1 Reply
1962 Views


 xpath expr="//field[@name='product_id']" position="attributes"
    attribute name="domain[('id', 'in', parent.product_id_domain)] /attribute
/xpath

I have skipped the please understand the code


how can add a condition to this domain as it has to execute only when parent.picking_type_code =='outgoing'

Avatar
Discard
Best Answer

Hi,

Try this code:

<xpath expr="//field[@name='product_id']" position="attributes">
                <attribute name="domain">['|', ('id', 'in', parent.product_id_domain), ('parent.picking_type_code', '=', 'outgoing')]</attribute>
            </xpath>




Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
जन॰ 24
1919
4
नव॰ 23
2728
1
नव॰ 23
6
1
अक्तू॰ 23
2058
1
मई 23
2004