Skip to Content
Menu
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
Oct 20
2080
1
Jan 22
1977
0
Dec 15
3946
7
Nov 15
12651
0
Mar 15
3336