Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var original_stop_function = cur_frm.cscript['Stop Sales Order’];
- cur_frm.cscript['Stop Sales Order’] = function() {
- if(user=="user@domain.com"){
- msgprint("You are not allowed to stop this sales order");
- return;
- } else {
- original_stop_function();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement