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

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?

Avatar
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
3672
1
čvc 24
1779
1
kvě 24
2634
1
led 24
4834
2
bře 23
2613