Skip to content

Commit

Permalink
[WIP] l10n_do_accounting: v17 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-pcg committed May 15, 2024
1 parent 2d2c6df commit a9c94d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_do_accounting/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def _compute_l10n_do_dgii_payer_type(self):
"""Compute the type of partner depending on soft decisions"""
for partner in self:
vat = partner.vat or partner.name
vat_len = len(vat)
upper_name = partner.name.upper()
vat_len = len(vat) if vat else 0
upper_name = partner.name.upper() if partner.name else ""
is_dominican_partner = partner.country_code == "DO"

if not is_dominican_partner:
Expand Down

0 comments on commit a9c94d9

Please sign in to comment.