Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
3535 Weergaven

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

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
Annuleer
Auteur

It is work correctly, Thank you Ravi Gadhia..

Beste antwoord

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

Avatar
Annuleer