[FIX] base_address_extended: default to Null instead of empty string

for computed street fields.

Qweb reports delete the node if the value is Null but won't if the value is an empty string. And then, l10n_mx_edi module has errors because there are nodes with empty string and the minimum value is one char.

Courtesy of Vauxoo. Was PR #17169

Backport in Saas-14 from opw-770430
This commit is contained in:
Moises Lopez - https://www.vauxoo.com/
2017-09-08 10:13:30 +02:00
committed by Nicolas Martinelli
parent ec0d51f20e
commit 4e2db85f2e
@@ -91,7 +91,7 @@ class Partner(models.Model):
for partner in self:
if not partner.street:
for field in street_fields:
partner[field] = ''
partner[field] = None
continue
street_format = (partner.country_id.street_format or