Skip to Content
Menú
This question has been flagged
1 Respondre
4100 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
0
d’oct. 20
3166
1
de gen. 22
3583
0
de des. 15
5475
7
de nov. 15
14395
0
de març 15
4738