Community mailing list archives

How to use domain in a Many2one

Anders Wallenquist
- 05/19/2015 08:09:54
I'm trying to use domain to limit the choices in the drop down of a Many2one-field:

current_company = fields.Many2one('',domain="[('id','in',[ for c in company_ids])]")

I got this error

Error: Expected "]", got "(name)"

What wrong am I doing?


Anders Wallenquist