From 05c33d06c31a7738f65c7191ddbcf58d65311a27 Mon Sep 17 00:00:00 2001 From: git_admin Date: Tue, 28 Apr 2026 07:34:52 +0000 Subject: [PATCH] Tower: upload at_accounting 18.0.1.7 (via marketplace) --- addons/at_accounting/models/balance_sheet.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 addons/at_accounting/models/balance_sheet.py diff --git a/addons/at_accounting/models/balance_sheet.py b/addons/at_accounting/models/balance_sheet.py new file mode 100644 index 0000000..171a36d --- /dev/null +++ b/addons/at_accounting/models/balance_sheet.py @@ -0,0 +1,11 @@ +from odoo import models + + +class BalanceSheetCustomHandler(models.AbstractModel): + _name = 'account.balance.sheet.report.handler' + _inherit = 'account.report.custom.handler' + _description = "Balance Sheet Custom Handler" + + def _customize_warnings(self, report, options, all_column_groups_expression_totals, warnings): + if options['currency_table']['type'] == 'cta': + warnings['at_accounting.common_possibly_unbalanced_because_cta'] = {}