Skip to content

Commit

Permalink
[FIX] l10n_br_account: validate move on document
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemotter committed May 24, 2024
1 parent 997d25f commit a54c6db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions l10n_br_account/models/fiscal_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,9 @@ def _document_correction(self, justificative):
msg = "Carta de correção: {}".format(justificative)
self.message_post(body=msg)
return result

def _document_confirm(self):
result = super()._document_confirm()
move_ids = self.move_ids.filtered(lambda move: move.state == "draft")
move_ids._post()
return result

0 comments on commit a54c6db

Please sign in to comment.