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

Hi all,

It is great if we can make a conditional required or readonly from the python code !

in version 15 the possibility of making a field readonly based on a condition existed !

however on the current version it seem to be replaced ! 

it is possible to make it available or we should put an @api.contraints for every fields ? 

Best regards.

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

Hello Nabil, 

In case of odoo v15 you can check the field_view_get method and based on that apply the conditions. 

For more reference : click here

Thanks,

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

Hi,

thanks for your return.

we can only override write and create method to do manually the conditional required ! ;)



Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лют. 19
6031
1
бер. 15
7132
1
бер. 15
4300
0
лют. 21
15
1
жовт. 23
7684