Browse Source

fix

pull/486/head
Giovanni Francesco Capalbo 7 years ago
parent
commit
de92836a3b
  1. 1
      partner_multi_relation_parent/models/res_partner_relation.py

1
partner_multi_relation_parent/models/res_partner_relation.py

@ -114,6 +114,7 @@ class ResPartnerRelation(models.Model):
# there is no relation, so we can create it, but we must update # there is no relation, so we can create it, but we must update
# the parent_id of the left contact of this new relation # the parent_id of the left contact of this new relation
res = super(ResPartnerRelation, self).create(vals=vals) res = super(ResPartnerRelation, self).create(vals=vals)
if res.type_id.id == type_relation:
res.left_partner_id.with_context(no_relation_update=True).write( res.left_partner_id.with_context(no_relation_update=True).write(
{'parent_id': vals['right_partner_id']} {'parent_id': vals['right_partner_id']}
) )

Loading…
Cancel
Save