fix(accounts): Translate columns in AP/AR report (#36503)

This commit is contained in:
Corentin Flr 2023-08-05 18:48:36 +02:00 committed by GitHub
parent 758b31d895
commit 559d914c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,13 +145,13 @@ class AccountsReceivableSummary(ReceivablePayableReport):
def get_columns(self):
self.columns = []
self.add_column(
label="Party Type",
label=_("Party Type"),
fieldname="party_type",
fieldtype="Data",
width=100,
)
self.add_column(
label="Party",
label=_("Party"),
fieldname="party",
fieldtype="Dynamic Link",
options="party_type",
@ -160,7 +160,7 @@ class AccountsReceivableSummary(ReceivablePayableReport):
if self.party_naming_by == "Naming Series":
self.add_column(
label="Supplier Name" if self.account_type == "Payable" else "Customer Name",
label=_("Supplier Name") if self.account_type == "Payable" else _("Customer Name"),
fieldname="party_name",
fieldtype="Data",
)