From 70949a5b5ba4e1d7ae7eaf8f98112b6e4a713d1f Mon Sep 17 00:00:00 2001 From: Mohammad Alhashash Date: Wed, 7 Oct 2015 15:28:42 +0200 Subject: [PATCH] [FIX] base_partner_merge: correct check for functional fields --- base_partner_merge/base_partner_merge.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/base_partner_merge/base_partner_merge.py b/base_partner_merge/base_partner_merge.py index 4331c50fc..88af7a340 100644 --- a/base_partner_merge/base_partner_merge.py +++ b/base_partner_merge/base_partner_merge.py @@ -274,9 +274,8 @@ class MergePartnerAutomatic(orm.TransientModel): if record.model == 'ir.property': continue - field_type = proxy_model._columns.get(record.name).__class__._type - - if field_type == 'function': + column = proxy_model._columns[record.name] + if isinstance(column, fields.function): continue for partner in src_partners: