Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
3545 Vues

How to hide the one2many sub field based on above field.

For example: i want to hide sale order line discount field field if the payment_term field have some specific value..

Avatar
Ignorer
Meilleure réponse

you can use attrs `column_invisible`in tree/list view of one2many field
​e.g. 
<field name="discount" attrs="{'column_invisible': [('parent.state','=', 'done')]}"/>

Avatar
Ignorer
Auteur

It is work correctly, Thank you Ravi Gadhia..

Meilleure réponse

In onchange of payment_term check your condition and make the discount field invisible=True

Avatar
Ignorer