Community mailing list archives

community@mail.odoo.com

Re: Domain on one2many field doesn't work

by
Albin John
- 09/20/2016 04:58:45
OK. thanks all. I got the solution 



On Tue, Sep 20, 2016 at 1:22 PM, Jairo Llopis <jairo.llopis@tecnativa.com> wrote:

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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--




Regards,
Albin John