Browse Source

Merge pull request #183 from charbeljc/fix_update_references

[FIX][8.0][base_partner_merge] correctly handle new style reference fields
pull/244/head
Holger Brunn 9 years ago
parent
commit
402957b738
  1. 5
      base_partner_merge/base_partner_merge.py

5
base_partner_merge/base_partner_merge.py

@ -274,9 +274,10 @@ class MergePartnerAutomatic(orm.TransientModel):
if record.model == 'ir.property': if record.model == 'ir.property':
continue continue
field_type = proxy_model._columns.get(record.name).__class__._type
legacy = proxy_model._columns.get(record.name)
field_spec = proxy_model._fields.get(record.name)
if field_type == 'function':
if isinstance(legacy, fields.function) or field_spec.compute:
continue continue
for partner in src_partners: for partner in src_partners:

Loading…
Cancel
Save