From 0dd3909465f5c689aea88360400e38cd08645f9c Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Tue, 22 Nov 2022 17:10:56 +0100 Subject: [PATCH] [IMP] account_financial_report: extensibility xlsx: allow to use other column types --- account_financial_report/report/abstract_report_xlsx.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/account_financial_report/report/abstract_report_xlsx.py b/account_financial_report/report/abstract_report_xlsx.py index 9e2f4bc4..6fd9b5cd 100644 --- a/account_financial_report/report/abstract_report_xlsx.py +++ b/account_financial_report/report/abstract_report_xlsx.py @@ -300,6 +300,8 @@ class AbstractReportXslx(models.AbstractModel): value or "", report_data["formats"]["format_right"], ) + else: + self.write_non_standard_column(cell_type, col_pos, value) report_data["row_pos"] += 1 def write_initial_balance(self, my_object, label, report_data): @@ -703,3 +705,9 @@ class AbstractReportXslx(models.AbstractModel): :return: the columns position used for final balance label. """ raise NotImplementedError() + + def write_non_standard_column(self, cell_type, col_pos, value): + """ + Write columns out of the columns type defined here. + """ + raise NotImplementedError()