[IMP] partner_statement: Translate statement title
This commit is contained in:
committed by
Miquel Raïch
parent
736e816bae
commit
a792d29e16
@@ -38,15 +38,14 @@ class ActivityStatementXslx(models.AbstractModel):
|
||||
currency_data = partner_data.get("currencies", {}).get(currency.id)
|
||||
account_type = data.get("account_type", False)
|
||||
row_pos += 2
|
||||
statement_header = _(
|
||||
"%(payable)sStatement between %(start)s and %(end)s in %(currency)s"
|
||||
) % {
|
||||
"payable": account_type == "liability_payable" and _("Supplier ") or "",
|
||||
"start": partner_data.get("start"),
|
||||
"end": partner_data.get("end"),
|
||||
"currency": currency.display_name,
|
||||
}
|
||||
|
||||
statement_header = data["get_title"](
|
||||
partner,
|
||||
is_detailed=False,
|
||||
account_type=account_type,
|
||||
starting_date=partner_data.get("start"),
|
||||
ending_date=partner_data.get("end"),
|
||||
currency=currency.display_name,
|
||||
)
|
||||
sheet.merge_range(
|
||||
row_pos, 0, row_pos, 6, statement_header, FORMATS["format_left_bold"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user