Browse Source

Merge cf2e22cde1 into cddccc5eb8

pull/795/merge
Zar21 3 years ago
committed by GitHub
parent
commit
c3dcce2bcc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      account_financial_report/report/abstract_report_xlsx.py

13
account_financial_report/report/abstract_report_xlsx.py

@ -73,17 +73,22 @@ class AbstractReportXslx(models.AbstractModel):
),
"format_header_amount": workbook.add_format(
{"bold": True, "border": True, "bg_color": "#FFFFCC"}
).set_num_format("#,##0." + "0" * currency_id.decimal_places),
"format_amount": workbook.add_format().set_num_format(
"#,##0." + "0" * currency_id.decimal_places
),
"format_amount": workbook.add_format(),
"format_amount_bold": workbook.add_format({"bold": True}).set_num_format(
"#,##0." + "0" * currency_id.decimal_places
),
"format_percent_bold_italic": workbook.add_format(
{"bold": True, "italic": True}
).set_num_format("#,##0.00%"),
),
}
report_data["formats"]["format_amount"].set_num_format(
"#,##0." + "0" * currency_id.decimal_places
)
report_data["formats"]["format_header_amount"].set_num_format(
"#,##0." + "0" * currency_id.decimal_places
)
report_data["formats"]["format_percent_bold_italic"].set_num_format("#,##0.00%")
def _set_column_width(self, report_data):
"""Set width for all defined columns.

Loading…
Cancel
Save