Community mailing list archives

community@mail.odoo.com

Re: Domain on one2many field doesn't work

by
jairo.llopis
- 09/20/2016 03:49:08

2016-09-19 16:12 GMT+02:00 Albin John <albinjohn54@gmail.com>:
material_id = fields.Many2one('mrp.bom','Material',domain="[('product_tmpl_id', '=', product_id)]")

Domain must be a list.


--
Jairo Llopis