From a1936185d3aac8d42e0192bfaa37124bc41a153f Mon Sep 17 00:00:00 2001 From: Nikos Tsirintanis Date: Tue, 4 Feb 2020 17:16:22 +0100 Subject: [PATCH] [FIX] make _compute_identification() to assign a value no matter what --- partner_identification/models/res_partner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/partner_identification/models/res_partner.py b/partner_identification/models/res_partner.py index 6c32cd46f..3f2f2b1de 100644 --- a/partner_identification/models/res_partner.py +++ b/partner_identification/models/res_partner.py @@ -54,6 +54,9 @@ class ResPartner(models.Model): lambda r: r.category_id.code == category_code ) if not id_numbers: + # As this is used as a compute method + # we need to assign something + record[field_name] = False continue value = id_numbers[0].name record[field_name] = value