From 433ce1abb2e673ab364da9cba049067500ebd713 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Mon, 2 Dec 2024 16:56:30 -0300 Subject: [PATCH] [IMP] l10n_br_account: add closure action --- l10n_br_account/models/account_move.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/l10n_br_account/models/account_move.py b/l10n_br_account/models/account_move.py index b9ebe11edf38..cc11d8a5b264 100644 --- a/l10n_br_account/models/account_move.py +++ b/l10n_br_account/models/account_move.py @@ -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()