[IMP] partner_statement: black, isort, prettier
This commit is contained in:
committed by
Miquel Raïch
parent
f2582803b0
commit
683730388e
@@ -27,14 +27,14 @@ class ActivityStatementXslx(models.AbstractModel):
|
||||
account_type = data.get("account_type", False)
|
||||
row_pos += 2
|
||||
statement_header = _(
|
||||
"%sStatement between %s and %s in %s"
|
||||
% (
|
||||
account_type == "payable" and _("Supplier ") or "",
|
||||
partner_data.get("start"),
|
||||
partner_data.get("end"),
|
||||
currency.display_name,
|
||||
)
|
||||
)
|
||||
"%(payable)sStatement between %(start)s and %(end)s in %(currency)s"
|
||||
) % {
|
||||
"payable": account_type == "payable" and _("Supplier ") or "",
|
||||
"start": partner_data.get("start"),
|
||||
"end": partner_data.get("end"),
|
||||
"currency": currency.display_name,
|
||||
}
|
||||
|
||||
sheet.merge_range(
|
||||
row_pos, 0, row_pos, 6, statement_header, FORMATS["format_right_bold"]
|
||||
)
|
||||
@@ -116,10 +116,10 @@ class ActivityStatementXslx(models.AbstractModel):
|
||||
currency_data = partner_data.get("currencies", {}).get(currency.id)
|
||||
if currency_data.get("buckets"):
|
||||
row_pos += 2
|
||||
buckets_header = _("Aging Report at %s in %s") % (
|
||||
partner_data.get("end"),
|
||||
currency.display_name,
|
||||
)
|
||||
buckets_header = _("Aging Report at %(end)s in %(currency)s") % {
|
||||
"end": partner_data.get("end"),
|
||||
"currency": currency.display_name,
|
||||
}
|
||||
sheet.merge_range(
|
||||
row_pos, 0, row_pos, 6, buckets_header, FORMATS["format_right_bold"]
|
||||
)
|
||||
@@ -203,7 +203,7 @@ class ActivityStatementXslx(models.AbstractModel):
|
||||
0,
|
||||
row_pos,
|
||||
6,
|
||||
_("Statement of Account from %s" % (company.display_name)),
|
||||
_("Statement of Account from %s") % (company.display_name),
|
||||
FORMATS["format_ws_title"],
|
||||
)
|
||||
row_pos += 1
|
||||
|
||||
Reference in New Issue
Block a user