[FIX] need_action_user_ids: now only on validate1 state.
bzr revid: tde@openerp.com-20120322132153-ljid4im9m9uoiyjb
This commit is contained in:
parent
0e5598c24f
commit
ed87926828
|
@ -363,7 +363,7 @@ class hr_holidays(osv.osv):
|
|||
for obj in self.browse(cr, uid, ids, context=context):
|
||||
if obj.state == 'confirm' and obj.employee_id.parent_id:
|
||||
result[obj.id] = [obj.employee_id.parent_id.user_id.id]
|
||||
elif obj.state == 'validate1' or obj.state == 'validate':
|
||||
elif obj.state == 'validate1':
|
||||
# get group_hr_manager: everyone will be warned of second validation
|
||||
res = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'base', 'group_hr_manager') or False
|
||||
obj_id = res and res[1] or False
|
||||
|
|
Loading…
Reference in New Issue