Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1519 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

Hi,

thanks for your return.

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



Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 19
6036
1
bře 15
7143
1
bře 15
4324
0
úno 21
15
1
říj 23
7698