Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1512 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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,

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hi,

thanks for your return.

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



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 19
6034
1
mar 15
7134
1
mar 15
4316
0
lut 21
15
1
paź 23
7690