Browse Source

Fix issue when applying empty many2one

pull/208/head
Guewen Baconnier 9 years ago
parent
commit
d66f1c5a0e
  1. 2
      partner_changeset/models/res_partner_changeset.py

2
partner_changeset/models/res_partner_changeset.py

@ -441,6 +441,8 @@ class ResPartnerChangesetChange(models.Model):
@api.multi
def _convert_value_for_write(self, value):
if not value:
return value
model = self.env[self.field_id.model_id.model]
model_field_def = model._fields[self.field_id.name]
return model_field_def.convert_to_write(value)

Loading…
Cancel
Save