made requested changes
This commit is contained in:
parent
b7b77609ce
commit
b1d4fcebb7
1 changed files with 3 additions and 0 deletions
|
|
@ -112,6 +112,9 @@ frappe.ui.form.States = Class.extend({
|
|||
} else if(new_docstatus==2 && me.frm.doc.docstatus==1) {
|
||||
me.frm.savecancel(null, success, on_error);
|
||||
} else {
|
||||
frappe.msgprint(__("Document Status transition from ") + me.frm.doc.docstatus + " "
|
||||
+ __("to") +
|
||||
new_docstatus + " " + __("is not allowed."));
|
||||
frappe.msgprint(__("Document Status transition from {0} to {1} is not allowed", [me.frm.doc.docstatus, new_docstatus]));
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue