コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1386 ビュー


 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
1313
4
11月 23
1986
1
11月 23
6
1
10月 23
1467
1
5月 23
1665