Skip to Content
मेन्यू
This question has been flagged
2 Replies
1496 Views

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
Discard
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
Discard
Author Best Answer

Hi,

thanks for your return.

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



Avatar
Discard
Related Posts Replies Views Activity
1
फ़र॰ 19
6028
1
मार्च 15
7132
1
मार्च 15
4297
0
फ़र॰ 21
15
1
अक्तू॰ 23
7678