Browse Source

[FIX] partner_identification: Do not validate number if validation code is not set

14.0
Tran Thanh Phuc 4 years ago
parent
commit
5dc88571a3
  1. 2
      partner_identification/models/res_partner_id_category.py

2
partner_identification/models/res_partner_id_category.py

@ -46,7 +46,7 @@ class ResPartnerIdCategory(models.Model):
python validation code fails
"""
self.ensure_one()
if self.env.context.get("id_no_validate"):
if self.env.context.get("id_no_validate") or not self.validation_code:
return
eval_context = self._validation_eval_context(id_number)
try:

Loading…
Cancel
Save