This commit is contained in:
Rushabh Mehta 2014-03-06 14:45:02 +05:30
parent 2e7ad8980c
commit 73f0bf36c1
2 changed files with 9 additions and 4 deletions

View File

@ -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();
}
}
}
})
});

View File

@ -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')