Skip to content

Commit

Permalink
[FIX] l10n_br_account: fix account.move post when there is no fiscal …
Browse files Browse the repository at this point in the history
…document
  • Loading branch information
WesleyOliveira98 committed Sep 13, 2024
1 parent 9e9aefb commit 5578e95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l10n_br_account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def _check_fiscal_document_type(self):
@api.depends("line_ids", "invoice_line_ids")
def _compute_fiscal_document_ids(self):
for move in self:
docs = set()
docs = self.env["l10n_br_fiscal.document"]
for line in move.invoice_line_ids:
docs.add(line.document_id.id)
move.fiscal_document_ids = list(docs)
docs |= line.document_id
move.fiscal_document_ids = docs

@api.depends("move_type", "fiscal_operation_id")
def _compute_fiscal_operation_type(self):
Expand Down

0 comments on commit 5578e95

Please sign in to comment.