Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] l10n_ar_edi_ux: update from afip #517

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions l10n_ar_edi_ux/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def check_activity(data_rg, data_mt):
actividades = self.env['afip.activity'].sudo()
activity_codes = actividades.search([]).mapped('code')
for act in afip_activities:
if str(act.get('idActividad')) not in activity_codes:
if act!={} and str(act.get('idActividad')) not in activity_codes:
new_activity.update({
'code': act.get('idActividad'),
'name': act.get('descripcionActividad')
Expand All @@ -187,7 +187,7 @@ def check_taxes(data_mt, data_rg):
taxes = self.env['afip.tax'].sudo()
tax_codes = taxes.search([]).mapped('code')
for imp in afip_taxes:
if str(imp.get('idImpuesto')) not in tax_codes:
if act!={} and str(imp.get('idImpuesto')) not in tax_codes:
new_tax.update({
'code': imp.get('idImpuesto'),
'name': imp.get('descripcionImpuesto')
Expand Down