Skip to Content
Menu
This question has been flagged
2 Replies
1507 Rodiniai

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.

Portretas
Atmesti
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,

Portretas
Atmesti
Autorius Best Answer

Hi,

thanks for your return.

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



Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
vas. 19
6033
1
kov. 15
7134
1
kov. 15
4309
0
vas. 21
15
1
spal. 23
7689