|
|
@@ -7,7 +7,8 @@ export default class GridRow { |
|
|
|
$.extend(this, opts); |
|
|
|
if (this.doc && this.parent_df.options) { |
|
|
|
frappe.meta.make_docfield_copy_for(this.parent_df.options, this.doc.name, this.docfields); |
|
|
|
this.docfields = frappe.meta.get_docfields(this.parent_df.options, this.doc.name); |
|
|
|
const docfields = frappe.meta.get_docfields(this.parent_df.options, this.doc.name); |
|
|
|
this.docfields = docfields.length ? docfields : opts.docfields; |
|
|
|
} |
|
|
|
this.columns = {}; |
|
|
|
this.columns_list = []; |
|
|
|