コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1506 ビュー

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.

アバター
破棄
最善の回答

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,

アバター
破棄
著作者 最善の回答

Hi,

thanks for your return.

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



アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 19
6032
1
3月 15
7134
1
3月 15
4309
0
2月 21
15
1
10月 23
7689