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()