OdooMindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
for partner in self:
if partner.country_code == 'HU' and partner.vat:
partner.l10n_hu_eu_vat = partner._convert_hu_local_to_eu_vat(partner.vat)
else:
partner.l10n_hu_eu_vat = False