fix: Parent Level project linkning on creating PO from project

This commit is contained in:
Deepesh Garg 2022-09-16 22:44:23 +05:30
parent 487d825ede
commit 93e134aab0

View File

@ -152,6 +152,7 @@ function open_form(frm, doctype, child_doctype, parentfield) {
new_child_doc.parentfield = parentfield;
new_child_doc.parenttype = doctype;
new_doc[parentfield] = [new_child_doc];
new_doc.project = frm.doc.name;
frappe.ui.form.make_quick_entry(doctype, null, null, new_doc);
});