Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2000 Ansichten


 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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Jan. 24
1936
4
Nov. 23
2753
1
Nov. 23
6
1
Okt. 23
2074
1
Mai 23
2010