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'] = {}