Преглед на файлове

style: add comment

version-14
Raffael Meyer преди 3 години
committed by GitHub
родител
ревизия
c9946b2899
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. +2
    -0
      frappe/desk/reportview.py

+ 2
- 0
frappe/desk/reportview.py Целия файл

@@ -379,6 +379,8 @@ def get_labels(fields, doctype):
df = frappe.get_meta(parenttype).get_field(fieldname)
label = _(df.label if df else fieldname.title())
if parenttype != doctype:
# If the column is from a child table, append the child doctype.
# For example, "Item Code (Sales Invoice Item)".
label += " (" + _(parenttype) + ")"

labels.append(label)


Зареждане…
Отказ
Запис