跳至內容
選單
此問題已被標幟
1 回覆
1389 瀏覽次數


 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'

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 24
1318
4
11月 23
1989
1
11月 23
6
1
10月 23
1468
1
5月 23
1667