Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2003 Visninger


 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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jan. 24
1939
4
nov. 23
2753
1
nov. 23
6
1
okt. 23
2078
1
maj 23
2011