Skip to content

Commit

Permalink
[IMP] l10n_br_account: add closure action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Dec 9, 2024
1 parent 3a1514e commit 433ce1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n_br_account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ def action_document_correction(self):
move.ensure_one_doc()
return move.fiscal_document_id.action_document_correction()

def action_document_closure(self):
for move in self.filtered(lambda d: d.document_type_id):
move.ensure_one_doc()
return move.fiscal_document_id.action_document_closure()

def action_document_invalidate(self):
for move in self.filtered(lambda d: d.document_type_id):
move.ensure_one_doc()
Expand Down

0 comments on commit 433ce1a

Please sign in to comment.