For example, I want to modify the domain of `sale.order.order_line`, and I have to copy all code and add the domain:
class SaleOrder(orm.Model): _name = _inherit = "sale.order" _columns = { # Copied from the original, but with domain 'order_line': fields.one2many( 'sale.order.line', 'order_id', 'Order Lines', domain=[("optional", "=", False)], readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}), }
But I want to know if there is any way to just declare what I want to modify, and leave the rest as is. Something similar to:
class SaleOrder(orm.Model): _name = _inherit = "sale.order" _columns = { 'order_line': { "domain": [("optional", "=", False)], } }
Is it possible?