diff --git a/account_financial_report/report/abstract_report_xlsx.py b/account_financial_report/report/abstract_report_xlsx.py
index 984b659c..842f9a49 100644
--- a/account_financial_report/report/abstract_report_xlsx.py
+++ b/account_financial_report/report/abstract_report_xlsx.py
@@ -59,7 +59,7 @@ class AbstractReportXslx(models.AbstractModel):
self._write_report_footer(report_footer)
def _define_formats(self, workbook):
- """ Add cell formats to current workbook.
+ """Add cell formats to current workbook.
Those formats can be used on all cell.
Available formats are :
* format_bold
@@ -237,8 +237,7 @@ class AbstractReportXslx(models.AbstractModel):
self.row_pos += 1
def write_line_from_dict(self, line_dict):
- """Write a line on current line
- """
+ """Write a line on current line"""
for col_pos, column in self.columns.items():
value = line_dict.get(column["field"], False)
cell_type = column.get("type", "string")
@@ -528,7 +527,7 @@ class AbstractReportXslx(models.AbstractModel):
def _generate_report_content(self, workbook, report, data):
"""
- Allow to fetch report content to be displayed.
+ Allow to fetch report content to be displayed.
"""
raise NotImplementedError()
@@ -542,74 +541,74 @@ class AbstractReportXslx(models.AbstractModel):
def _get_report_name(self, report, data=False):
"""
- Allow to define the report name.
- Report name will be used as sheet name and as report title.
- :return: the report name
+ Allow to define the report name.
+ Report name will be used as sheet name and as report title.
+ :return: the report name
"""
raise NotImplementedError()
def _get_report_footer(self):
"""
- Allow to define the report footer.
- :return: the report footer
+ Allow to define the report footer.
+ :return: the report footer
"""
return False
def _get_report_columns(self, report):
"""
- Allow to define the report columns
- which will be used to generate report.
- :return: the report columns as dict
- :Example:
- {
- 0: {'header': 'Simple column',
- 'field': 'field_name_on_my_object',
- 'width': 11},
- 1: {'header': 'Amount column',
- 'field': 'field_name_on_my_object',
- 'type': 'amount',
- 'width': 14},
- }
+ Allow to define the report columns
+ which will be used to generate report.
+ :return: the report columns as dict
+ :Example:
+ {
+ 0: {'header': 'Simple column',
+ 'field': 'field_name_on_my_object',
+ 'width': 11},
+ 1: {'header': 'Amount column',
+ 'field': 'field_name_on_my_object',
+ 'type': 'amount',
+ 'width': 14},
+ }
"""
raise NotImplementedError()
def _get_report_filters(self, report):
"""
- :return: the report filters as list
- :Example:
- [
- ['first_filter_name', 'first_filter_value'],
- ['second_filter_name', 'second_filter_value']
- ]
+ :return: the report filters as list
+ :Example:
+ [
+ ['first_filter_name', 'first_filter_value'],
+ ['second_filter_name', 'second_filter_value']
+ ]
"""
raise NotImplementedError()
def _get_col_count_filter_name(self):
"""
- :return: the columns number used for filter names.
+ :return: the columns number used for filter names.
"""
raise NotImplementedError()
def _get_col_count_filter_value(self):
"""
- :return: the columns number used for filter values.
+ :return: the columns number used for filter values.
"""
raise NotImplementedError()
def _get_col_pos_initial_balance_label(self):
"""
- :return: the columns position used for initial balance label.
+ :return: the columns position used for initial balance label.
"""
raise NotImplementedError()
def _get_col_count_final_balance_name(self):
"""
- :return: the columns number used for final balance name.
+ :return: the columns number used for final balance name.
"""
raise NotImplementedError()
def _get_col_pos_final_balance_label(self):
"""
- :return: the columns position used for final balance label.
+ :return: the columns position used for final balance label.
"""
raise NotImplementedError()
diff --git a/account_financial_report/report/aged_partner_balance_xlsx.py b/account_financial_report/report/aged_partner_balance_xlsx.py
index aea918a9..fc25b61d 100644
--- a/account_financial_report/report/aged_partner_balance_xlsx.py
+++ b/account_financial_report/report/aged_partner_balance_xlsx.py
@@ -268,8 +268,8 @@ class AgedPartnerBalanceXslx(models.AbstractModel):
def write_ending_balance_from_dict(self, my_object):
"""
- Specific function to write ending partner balance
- for Aged Partner Balance
+ Specific function to write ending partner balance
+ for Aged Partner Balance
"""
name = None
label = _("Partner cumul aged balance")
@@ -288,7 +288,7 @@ class AgedPartnerBalanceXslx(models.AbstractModel):
amount_is_percent,
):
"""
- Specific function to write account footer for Aged Partner Balance
+ Specific function to write account footer for Aged Partner Balance
"""
col_pos_footer_label = self._get_col_pos_footer_label(report)
for col_pos, column in self.columns.items():
diff --git a/account_financial_report/report/general_ledger.py b/account_financial_report/report/general_ledger.py
index e8951ae7..91fd379f 100644
--- a/account_financial_report/report/general_ledger.py
+++ b/account_financial_report/report/general_ledger.py
@@ -748,12 +748,16 @@ class GeneralLedgerReport(models.AbstractModel):
for partner in account["list_partner"]:
for move_line in partner["move_lines"]:
centralized_ml = self._calculate_centralization(
- centralized_ml, move_line, date_to,
+ centralized_ml,
+ move_line,
+ date_to,
)
else:
for move_line in account["move_lines"]:
centralized_ml = self._calculate_centralization(
- centralized_ml, move_line, date_to,
+ centralized_ml,
+ move_line,
+ date_to,
)
list_centralized_ml = []
for jnl_id in centralized_ml.keys():
diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py
index 4c32d3b1..c57c24d3 100644
--- a/account_financial_report/report/general_ledger_xlsx.py
+++ b/account_financial_report/report/general_ledger_xlsx.py
@@ -195,7 +195,10 @@ class GeneralLedgerXslx(models.AbstractModel):
for tag_id in line["tag_ids"]:
tags += tags_data[tag_id]["name"] + " "
line.update(
- {"taxes_description": taxes_description, "tags": tags,}
+ {
+ "taxes_description": taxes_description,
+ "tags": tags,
+ }
)
self.write_line_from_dict(line)
# Display ending balance line for account
@@ -208,7 +211,9 @@ class GeneralLedgerXslx(models.AbstractModel):
)
if foreign_currency:
account.update(
- {"final_bal_curr": account["fin_bal"]["bal_curr"],}
+ {
+ "final_bal_curr": account["fin_bal"]["bal_curr"],
+ }
)
self.write_ending_balance_from_dict(account)
@@ -234,7 +239,9 @@ class GeneralLedgerXslx(models.AbstractModel):
)
if foreign_currency:
partner.update(
- {"initial_bal_curr": partner["init_bal"]["bal_curr"],}
+ {
+ "initial_bal_curr": partner["init_bal"]["bal_curr"],
+ }
)
self.write_initial_balance_from_dict(partner)
@@ -263,7 +270,10 @@ class GeneralLedgerXslx(models.AbstractModel):
for tag_id in line["tag_ids"]:
tags += tags_data[tag_id]["name"] + " "
line.update(
- {"taxes_description": taxes_description, "tags": tags,}
+ {
+ "taxes_description": taxes_description,
+ "tags": tags,
+ }
)
self.write_line_from_dict(line)
diff --git a/account_financial_report/report/templates/aged_partner_balance.xml b/account_financial_report/report/templates/aged_partner_balance.xml
index e5f4a8d1..9b8e0b7b 100644
--- a/account_financial_report/report/templates/aged_partner_balance.xml
+++ b/account_financial_report/report/templates/aged_partner_balance.xml
@@ -15,9 +15,12 @@