Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1531 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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,

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hi,

thanks for your return.

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



Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
feb. 19
6047
1
mar. 15
7156
1
mar. 15
4327
0
feb. 21
15
1
oct. 23
7703