Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4084 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 20
3162
1
jan. 22
3549
0
dec. 15
5460
7
nov. 15
14388
0
mrt. 15
4704