Skip to content

Commit

Permalink
[REF] l10n_do_ncf_validation: refact code
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-pcg committed Dec 12, 2023
1 parent 17b99f7 commit a8390ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l10n_do_ncf_validation/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def action_post(self):
and inv.l10n_latam_use_documents
and inv.company_id.ncf_validation_target != "none"
)

result = super(AccountMove, self).action_post()

for invoice in l10n_do_fiscal_invoice:
ncf_validation_target = invoice.company_id.ncf_validation_target
if ncf_validation_target != "both":
Expand All @@ -117,4 +120,4 @@ def action_post(self):
)
)

return super(AccountMove, self).action_post()
return result

0 comments on commit a8390ff

Please sign in to comment.