Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4089 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
oct. 20
3162
1
janv. 22
3551
0
déc. 15
5462
7
nov. 15
14389
0
mars 15
4704