Skip to Content
Menú
This question has been flagged
2 Respostes
1514 Vistes

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.

Avatar
Descartar
Best Answer

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,

Avatar
Descartar
Autor Best Answer

Hi,

thanks for your return.

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



Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de febr. 19
6035
1
de març 15
7137
1
de març 15
4318
0
de febr. 21
15
1
d’oct. 23
7692