Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1982 Vues


 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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
janv. 24
1925
4
nov. 23
2741
1
nov. 23
6
1
oct. 23
2063
1
mai 23
2007