Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3565 Переглядів

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..

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор

It is work correctly, Thank you Ravi Gadhia..

Найкраща відповідь

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

Аватар
Відмінити