Advertisement
Guest User

Untitled

a guest
Feb 8th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var original_stop_function = cur_frm.cscript['Stop Sales Order’];
  2. cur_frm.cscript['Stop Sales Order’] = function() {
  3.   if(user=="user@domain.com"){
  4.     msgprint("You are not allowed to stop this sales order");
  5.     return;
  6.   } else {
  7.     original_stop_function();
  8.   }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement