commit
200a30f738
|
@ -75,9 +75,7 @@ class AbstractReportXslx(models.AbstractModel):
|
|||
{"bold": True, "border": True, "bg_color": "#FFFFCC"}
|
||||
),
|
||||
"format_amount": workbook.add_format(),
|
||||
"format_amount_bold": workbook.add_format({"bold": True}).set_num_format(
|
||||
"#,##0." + "0" * currency_id.decimal_places
|
||||
),
|
||||
"format_amount_bold": workbook.add_format({"bold": True}),
|
||||
"format_percent_bold_italic": workbook.add_format(
|
||||
{"bold": True, "italic": True}
|
||||
),
|
||||
|
@ -89,6 +87,9 @@ class AbstractReportXslx(models.AbstractModel):
|
|||
"#,##0." + "0" * currency_id.decimal_places
|
||||
)
|
||||
report_data["formats"]["format_percent_bold_italic"].set_num_format("#,##0.00%")
|
||||
report_data["formats"]["format_amount_bold"].set_num_format(
|
||||
"#,##0." + "0" * currency_id.decimal_places
|
||||
)
|
||||
|
||||
def _set_column_width(self, report_data):
|
||||
"""Set width for all defined columns.
|
||||
|
|
Loading…
Reference in New Issue