From bb075fe03668026696730e20b0a20e3516315224 Mon Sep 17 00:00:00 2001 From: git_admin Date: Tue, 28 Apr 2026 07:34:09 +0000 Subject: [PATCH] Tower: upload at_accounting 18.0.1.7 (via marketplace) --- ...count_report_file_download_error_wizard.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 addons/at_accounting/wizard/account_report_file_download_error_wizard.py diff --git a/addons/at_accounting/wizard/account_report_file_download_error_wizard.py b/addons/at_accounting/wizard/account_report_file_download_error_wizard.py new file mode 100644 index 0000000..834971f --- /dev/null +++ b/addons/at_accounting/wizard/account_report_file_download_error_wizard.py @@ -0,0 +1,21 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class AccountReportFileDownloadErrorWizard(models.TransientModel): + _name = 'account.report.file.download.error.wizard' + _description = "Manage the file generation errors from report exports." + + actionable_errors = fields.Json() + file_name = fields.Char() + file_content = fields.Binary() + + def button_download(self): + self.ensure_one() + if self.file_name: + return { + 'type': 'ir.actions.act_url', + 'url': f'/web/content/account.report.file.download.error.wizard/{self.id}/file_content/{self.file_name}?download=1', + 'close': True, + }