Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
370 Переглядів
attrs="{'readonly': [('invoice_count','!=',0),('state','=','sale')]}" This is odoo 16 xml readonly attribute part, Can someone help me to convert this readonly condituion to odoo18
Аватар
Відмінити
Найкраща відповідь

Hi,


Try with the following code.

<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>


Hope it helps

Аватар
Відмінити
Найкраща відповідь
readonly="invoice_count and state == 'sale'"
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
січ. 25
739
3
серп. 24
15805
1
лист. 19
3706
1
серп. 18
4998
1
бер. 15
4884