El 19/01/15 a les 17:00, Rafael do Nascimento Junior ha escrit:
Hi,
I've installed the party_relationship module and I want to create a
field in another module that searches all the contacts of the party.
I have a class called Contact in work_order module. In Contact class I
want to save the person who contacted me. The work_order has a party and
I want to search the contacts of this party.
I did this
relation = fields.Many2One('party.relation.all', 'Relation',
domain=[('from_', '=', 'work_order.party')])
I think you need a One2Many instead of a Many2One, as every party can be
related to multiple contacts.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk