跳至内容
菜单
此问题已终结
1 回复
1994 查看


 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
1929
4
11月 23
2747
1
11月 23
6
1
10月 23
2067
1
5月 23
2010