style: add comment
This commit is contained in:
parent
a62da8ddeb
commit
c9946b2899
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue