[FIX] base_vat_autocomplete: support overload street fields
Install base_vat_autocomplete and base_address_extended. Try to create a contact with VAT: BE0477472701 (or any valid one) Before this commit, there was a traceback because the split of the address string into fields contained a field that is set in base_adress_extended, and not handled by the current module After this commit, there is no traceback OPW 1887288 closes #27291
This commit is contained in:
@@ -111,7 +111,8 @@ class ResPartner(models.Model):
|
||||
#set the address fields
|
||||
for field, value in partner_address.items():
|
||||
partner[field] = value
|
||||
non_set_address_fields.remove(field)
|
||||
if field in non_set_address_fields:
|
||||
non_set_address_fields.remove(field)
|
||||
for field in non_set_address_fields:
|
||||
if partner[field]:
|
||||
partner[field] = False
|
||||
|
||||
Reference in New Issue
Block a user