[fix] create_new without metadata
This commit is contained in:
parent
0130d721c1
commit
0d5003546c
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ $.extend(frappe.model, {
|
|||
},
|
||||
|
||||
create_mandatory_children: function(doc) {
|
||||
if(frappe.get_meta(doc.doctype).istable) return;
|
||||
var meta = frappe.get_meta(doc.doctype);
|
||||
if(meta && meta.istable) return;
|
||||
|
||||
// create empty rows for mandatory table fields
|
||||
frappe.meta.docfield_list[doc.doctype].forEach(function(df) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue