edit staff but effect to level (permission)

report_acc_hdcase_summary
watcha.h 2016-09-21 11:59:17 +07:00
parent 4c996693a3
commit 92604cd73e
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,8 @@ class Staff(Model):
def _get_rotation(self,ids,context={}): def _get_rotation(self,ids,context={}):
res={} res={}
user_id=get_active_user()
set_active_user(1)
for obj in self.browse(ids): for obj in self.browse(ids):
wage=0 wage=0
max_cycle=0 max_cycle=0
@ -52,6 +54,7 @@ class Staff(Model):
'level_id': level_id, 'level_id': level_id,
'categ_id': categ_id, 'categ_id': categ_id,
} }
set_active_user(user_id)
return res return res
def _get_hdcase(self,ids,context={}): def _get_hdcase(self,ids,context={}):