Skip to content

Commit

Permalink
[WIP] force test document_date
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoParadeda committed Jan 28, 2025
1 parent 2fb1c1a commit dd2d0da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions l10n_br_account_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def _update_nfce_for_offline_contingency(self):

copy_invoice.fiscal_document_id.processador_edoc = self.processador_edoc
copy_invoice.processador_edoc = self.processador_edoc
copy_invoice.document_date = self.document_date
copy_invoice.partner_id = self.partner_id

copy_invoice.action_post()
return res
4 changes: 2 additions & 2 deletions l10n_br_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,8 @@ def _serialize(self, edocs):
processor = record.processador_edoc

# TODO: Avaliar a possibilidade de remover esse flush e invalidate
record.flush()
record.invalidate_cache()
# record.flush()
# record.invalidate_cache()
inf_nfe = record._build_binding("nfe", "40")

if hasattr(record, "move_ids") and record.move_ids:
Expand Down

0 comments on commit dd2d0da

Please sign in to comment.