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

Hi, i want to change the domain filter of a existing field. e.g. in class stock_move in file: addons/stock/stock.py

'product_id': fields.many2one('product.product', 'Product', required=True, select=True, domain=[('state','<>','obsolete')],states={'done': [('readonly', True)]}), 

I want to write a new module for that, which overwrites the existing column with the new domain. How can I do this?

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

Inheriting the existing model and overwriting the existing _column in my mymodule.py seems to work. No view.xml needed.

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 15
3665
1
7月 24
1759
1
5月 24
2617
1
1月 24
4799
2
3月 23
2598