Skip to content

Commit

Permalink
[IMP]glasof_exporter: aeat identification
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Oct 10, 2024
1 parent cbd9391 commit 8e80f9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion glasof_exporter/wizard/glasof_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ def _export_payments(self):
date_format = next(date_formats)
money_format = next(money_formats)
country_code = ""
vat_partner = inv.partner_id.vat if inv.partner_id.vat else ""
if inv.partner_id.vat:
vat_partner = inv.partner_id.vat
elif inv.partner_id.aeat_identificacion:
vat_partner = inv.partner_id.aeat_identificacion
country_partner = inv.partner_id.country_id
if country_partner:
country_code = country_partner.code
Expand Down

0 comments on commit 8e80f9d

Please sign in to comment.