Skip to content

Commit

Permalink
[FIX] l10n_ar_ux: adjust method name
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-weiss committed Feb 3, 2023
1 parent 5905fba commit 81d4c39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l10n_ar_ux/models/account_fiscal_position.py
Expand Up @@ -4,17 +4,17 @@


@api.model
def get_fiscal_position(self, partner_id, delivery_id=None):
def _get_fiscal_position(self, partner_id, delivery_id=None):
company = self.env.company
if company.country_id.code == "AR":
partner = self.env['res.partner'].browse(partner_id)
self = self.with_context(
company_code='AR',
l10n_ar_afip_responsibility_type_id=partner.l10n_ar_afip_responsibility_type_id.id)
return super(AccountFiscalPosition, self).get_fiscal_position(partner_id, delivery_id=delivery_id)
return super(AccountFiscalPosition, self)._get_fiscal_position(partner_id, delivery_id=delivery_id)


AccountFiscalPosition.get_fiscal_position = get_fiscal_position
AccountFiscalPosition._get_fiscal_position = _get_fiscal_position


class AccountFiscalPositionMp(models.Model):
Expand Down

0 comments on commit 81d4c39

Please sign in to comment.