Browse Source

Merge PR #921 into 12.0

Signed-off-by pedrobaeza
12.0
OCA-git-bot 4 years ago
parent
commit
b4ff09a095
  1. 2
      base_location/models/res_partner.py

2
base_location/models/res_partner.py

@ -83,7 +83,7 @@ class ResPartner(models.Model):
raise ValidationError(_(
"The country of the partner %s differs from that in "
"location %s") % (rec.name, rec.zip_id.name))
if rec.zip_id.city_id != rec.city_id:
if rec.city_id and rec.zip_id.city_id != rec.city_id:
raise ValidationError(_(
"The city of partner %s differs from that in "
"location %s") % (rec.name, rec.zip_id.name))

Loading…
Cancel
Save