Skip to content

Commit

Permalink
[FIX] l10n_br_nfe: add module in record context
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Oct 23, 2024
1 parent 461a526 commit 529ebd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions l10n_br_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,8 @@ def _serialize(self, edocs):
):
record.flush()
record.invalidate_cache()

record = record.with_context(module="l10n_br_nfe")
inf_nfe = record._build_binding("nfe", "40")

inf_nfe_supl = None
Expand All @@ -904,6 +906,7 @@ def _serialize(self, edocs):

nfe = Nfe(infNFe=inf_nfe, infNFeSupl=inf_nfe_supl, signature=None)
edocs.append(nfe)

return edocs

def _edoc_processor(self):
Expand Down

0 comments on commit 529ebd1

Please sign in to comment.