This makes it possible for creator to override anything?!? I don’t understand.
The problem is, that if I uncheck this box, I as a creator can’t self approve any workflow, even if I’m member of the Projects Manager group and in our case also project_manager of the project.
But if I leave the box checked, I can approve all workflows and the above script doesn’t work.
Just to be clear, what I changed in script was: frappe.ui.form.on("Employee Advance", "workflow_state", function(frm) {
So I digged litte bit into this…it seems for my particular case I don’t really need custom js scripts now and I could simple use condition in the workflow.
Question 1: - the below doesn’t work. I don’t really know how to debug this anymore, since it is not in js…and I don’t really know anything about python. Can anyone provie a correct syntax?
The problem is somewhere with frappe.user. If I change it to hard-coded string (just for test one user), it works.
have you found any solution? I want to do something similar. when manager rejects an appraisal, I need to show a pop-up to get the reason for rejecting and then move to next state that is draft.