[IMP] account_financial_report: extensibility xlsx: allow to use other column types
This commit is contained in:
committed by
chaule97
parent
74787ee588
commit
4104852ce0
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user