On 26 Jan 11:32, Rafael do Nascimento Júnior wrote:
> I want to show the list of the contacts of a respective party and allow the
> user to select one.
> 
> Why this domain does not work?
> 
> relation = fields.Many2One('party.relation.all', 'Relation',
> domain=[('from_', '=', 'work_order.party')])

from_ is a Many2One so I doubt 'work_order.party' is a valid party id.
After that, party.relation.all is a special Model with a table_query so
maybe it can not be used for Many2One.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to