edit staff but effect to level (permission)
parent
4c996693a3
commit
92604cd73e
|
@ -32,6 +32,8 @@ class Staff(Model):
|
|||
|
||||
def _get_rotation(self,ids,context={}):
|
||||
res={}
|
||||
user_id=get_active_user()
|
||||
set_active_user(1)
|
||||
for obj in self.browse(ids):
|
||||
wage=0
|
||||
max_cycle=0
|
||||
|
@ -52,6 +54,7 @@ class Staff(Model):
|
|||
'level_id': level_id,
|
||||
'categ_id': categ_id,
|
||||
}
|
||||
set_active_user(user_id)
|
||||
return res
|
||||
|
||||
def _get_hdcase(self,ids,context={}):
|
||||
|
|
Loading…
Reference in New Issue