[IMP] : pre-commit auto fixes
This commit is contained in:
@@ -29,7 +29,7 @@ class DetailedActivityStatementXslx(models.AbstractModel):
|
||||
report_name = _("Detailed Activity Statement")
|
||||
if company_id:
|
||||
company = self.env["res.company"].browse(company_id)
|
||||
suffix = " - {} - {}".format(company.name, company.currency_id.name)
|
||||
suffix = f" - {company.name} - {company.currency_id.name}"
|
||||
report_name = report_name + suffix
|
||||
return report_name
|
||||
|
||||
@@ -39,7 +39,8 @@ class DetailedActivityStatementXslx(models.AbstractModel):
|
||||
account_type = data.get("account_type", False)
|
||||
row_pos += 2
|
||||
statement_header = _(
|
||||
"Detailed %(payable)sStatement between %(start)s and %(end)s in %(currency)s"
|
||||
"Detailed %(payable)sStatement between %(start)s and %(end)s"
|
||||
" in %(currency)s"
|
||||
) % {
|
||||
"payable": account_type == "liability_payable" and _("Supplier ") or "",
|
||||
"start": partner_data.get("start"),
|
||||
@@ -523,11 +524,12 @@ class DetailedActivityStatementXslx(models.AbstractModel):
|
||||
for currency_id in currencies:
|
||||
currency = self.env["res.currency"].browse(currency_id)
|
||||
if currency.position == "after":
|
||||
money_string = "#,##0.%s " % (
|
||||
"0" * currency.decimal_places
|
||||
) + "[${}]".format(currency.symbol)
|
||||
money_string = (
|
||||
"#,##0.%s " % ("0" * currency.decimal_places)
|
||||
+ f"[${currency.symbol}]"
|
||||
)
|
||||
elif currency.position == "before":
|
||||
money_string = "[${}]".format(currency.symbol) + " #,##0.%s" % (
|
||||
money_string = f"[${currency.symbol}]" + " #,##0.%s" % (
|
||||
"0" * currency.decimal_places
|
||||
)
|
||||
FORMATS["current_money_format"] = workbook.add_format(
|
||||
|
||||
Reference in New Issue
Block a user