Domains don't work with related O2M.

Bug #1119140 reported by wowas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

If apply the domain to related field with type O2M, then it don't work!
For example:

'picking_id': fields.many2one('stock.picking', 'Picking List', readonly=True, ondelete="restrict",
            help="This is the Internal Picking List that brings the finished product to the production plan"),
'available_product': fields.related('picking_id', 'move_lines', type='one2many', relation="stock.move", string='Available Products',
            domain=[('state','in', ('assigned'))], readonly=True),

Field 'available_product' will show all product moves, but expected only with 'state=assigned'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.