Skip to content

Commit

Permalink
Merge PR OCA#3364 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by antoniospneto
  • Loading branch information
OCA-git-bot committed Sep 14, 2024
2 parents 93b80b6 + 5578e95 commit 31e5f21
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 31e5f21

Please sign in to comment.