Skip to content

Commit

Permalink
fix(accounts): Translate columns in AP/AR report (#36503)
Browse files Browse the repository at this point in the history
fix(accounts): Translate columns in AP/AR report (#36503)

(cherry picked from commit 559d914)

Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>
  • Loading branch information
mergify[bot] and cogk authored Aug 5, 2023
1 parent 0d7a4b6 commit 6739369
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ def set_party_details(self, row):
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",
Expand All @@ -160,7 +160,7 @@ def get_columns(self):

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",
)
Expand Down

0 comments on commit 6739369

Please sign in to comment.