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

I need some assistance to know what alternative can be used to return a many2one field domain within a method with the api.onchange decorator, and avoid the warning: onchange method 'any_method_name' returned a domain, this is deprecated.


I know about the existence of the web_domain_field module, but I would like to know if there is any alternative using odoo's own functionalities.


Thank you very much in advance.

アバター
破棄
最善の回答

Hi,

Returning of domain from onchange function is not  astable solution , once the domain get set from onchange, if you refresh or save the record the domain will get lost,  ie, the  scope  of  the  domain  is  very  limited  here.


That's why the option has been removed from the v14, the web domain field is a stable solution that developers can trust.

Thanks

アバター
破棄

Hi Niyas, how to use the web domain field for this solution?

関連投稿 返信 ビュー 活動
0
8月 24
8980
0
3月 15
4799
0
3月 15
4358
2
4月 23
2725
2
2月 25
40423