Skip to content

Commit

Permalink
[FIX] make res.partner.relation.all#write work for multiple records
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Apr 23, 2019
1 parent 1a9e719 commit 2f66adb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions partner_multi_relation/models/res_partner_relation_all.py
Expand Up @@ -386,8 +386,9 @@ def _get_type_selection_from_vals(self, vals):
if type_id:
is_inverse = vals.get('is_inverse')
type_selection_id = type_id * 2 + (is_inverse and 1 or 0)
return type_selection_id and self.type_selection_id.browse(
type_selection_id) or False
return self.env['res.partner.relation.type.selection'].browse(
type_selection_id or []
)

@api.multi
def write(self, vals):
Expand Down

0 comments on commit 2f66adb

Please sign in to comment.