fixed #1454
This commit is contained in:
parent
2e7ad8980c
commit
73f0bf36c1
@ -144,9 +144,14 @@ erpnext.SalesChart = Class.extend({
|
||||
return frappe.call({
|
||||
method: 'erpnext.selling.page.sales_browser.sales_browser.add_node',
|
||||
args: v,
|
||||
callback: function() {
|
||||
d.hide();
|
||||
node.reload();
|
||||
callback: function(r) {
|
||||
if(!r.exc) {
|
||||
d.hide();
|
||||
node.reload();
|
||||
if(!node.expanded) {
|
||||
node.toggle_node();
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
@ -81,7 +81,7 @@ class DocType(TransactionBase):
|
||||
"event_type": "Private",
|
||||
"ref_type": self.doc.doctype,
|
||||
"ref_name": self.doc.name
|
||||
}).insert()
|
||||
}).insert(ignore_permissions=1)
|
||||
|
||||
frappe.db.set(self.doc, 'status', 'Submitted')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user