Skip to Content
मेन्यू
This question has been flagged

Hello Dears,.

i have custom module i need if i select product from many2one field i want to display 3 fields
at attrs :


'product_id':fields.many2one('product.product', required=True),

------------------------------------------------------------------------------------------------------


<field name="Display_field" attrs="{'visible':[('product_id', '=', 'Product1')]}"/>


how to solve that ??? 


Avatar
Discard
Best Answer

Hi,

Try like this,


<field name="Display_field" attrs="{'invisible':[('product_id', '!=', id_of_ur_product_field)]}"/>

or

<field name="Display_field" attrs="{'invisible':[('product_id.name', '!=', 'product_name')]}"/>

Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
अक्तू॰ 20
3163
1
जन॰ 22
3580
0
दिस॰ 15
5470
7
नव॰ 15
14389
0
मार्च 15
4730