Solve issue for while changing status of sales order page not reloading (#9204)
* Solve issue for while changing status of sales order page not reloading * Close Sales order issue : code review Changes.
This commit is contained in:
parent
da15486624
commit
eed0cee186
@ -314,12 +314,13 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
|
|||||||
},
|
},
|
||||||
update_status: function(label, status){
|
update_status: function(label, status){
|
||||||
var doc = this.frm.doc;
|
var doc = this.frm.doc;
|
||||||
|
var me = this;
|
||||||
frappe.ui.form.is_saving = true;
|
frappe.ui.form.is_saving = true;
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.selling.doctype.sales_order.sales_order.update_status",
|
method: "erpnext.selling.doctype.sales_order.sales_order.update_status",
|
||||||
args: {status: status, name: doc.name},
|
args: {status: status, name: doc.name},
|
||||||
callback: function(r){
|
callback: function(r){
|
||||||
this.frm.reload_doc();
|
me.frm.reload_doc();
|
||||||
},
|
},
|
||||||
always: function() {
|
always: function() {
|
||||||
frappe.ui.form.is_saving = false;
|
frappe.ui.form.is_saving = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user