Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4096 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
okt. 20
3164
1
jan. 22
3580
0
dec. 15
5471
7
nov. 15
14389
0
mar. 15
4731