mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
workflow updates: update_field not editable & bug fix
This commit is contained in:
@@ -61,7 +61,8 @@ cur_frm.cscript.refresh = function(doc,cdt,cdn){
|
|||||||
} else {
|
} else {
|
||||||
cur_frm.set_intro("Expense Claim is pending approval. Only the Expense Approver can update status.");
|
cur_frm.set_intro("Expense Claim is pending approval. Only the Expense Approver can update status.");
|
||||||
cur_frm.toggle_enable("approval_status", false);
|
cur_frm.toggle_enable("approval_status", false);
|
||||||
if(!doc.__islocal) cur_frm.frm_head.appframe.buttons.Submit.toggle(false);
|
if(!doc.__islocal && cur_frm.frm_head.appframe.buttons.Submit)
|
||||||
|
cur_frm.frm_head.appframe.buttons.Submit.toggle(false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(doc.approval_status=="Approved") {
|
if(doc.approval_status=="Approved") {
|
||||||
|
|||||||
Reference in New Issue
Block a user