Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
1509 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur Meilleure réponse

Hi,

thanks for your return.

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



Avatar
Ignorer
Publications associées Réponses Vues Activité
1
févr. 19
6033
1
mars 15
7134
1
mars 15
4312
0
févr. 21
15
1
oct. 23
7689