Browse Source

[FIX] make _compute_identification() to assign a value no matter what

14.0
Nikos Tsirintanis 5 years ago
committed by Tran Thanh Phuc
parent
commit
a1936185d3
  1. 3
      partner_identification/models/res_partner.py

3
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

Loading…
Cancel
Save