Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1505 Представления

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
6032
1
мар. 15
7133
1
мар. 15
4309
0
февр. 21
15
1
окт. 23
7688