[FIX] hr_holidays: fixed wrong condition due to bad merge of trunk.
bzr revid: tde@openerp.com-20120903095526-su8jionaltao0x2k
This commit is contained in:
parent
6fa349a4eb
commit
1be5a4d452
|
@ -379,7 +379,7 @@ class hr_holidays(osv.osv):
|
|||
|
||||
def holidays_validate_notificate(self, cr, uid, ids, context=None):
|
||||
for obj in self.browse(cr, uid, ids):
|
||||
if obj.holiday_status_id.double_validation:
|
||||
if obj.double_validation:
|
||||
self.message_post(cr, uid, [obj.id],
|
||||
_("The request has been <b>double validated</b>. The validation process is now over."), context=context)
|
||||
else:
|
||||
|
@ -391,6 +391,7 @@ class hr_holidays(osv.osv):
|
|||
self.message_post(cr, uid, [obj.id],
|
||||
_("The request has been <b>refused</b>. The validation process is now over."), context=context)
|
||||
|
||||
|
||||
class resource_calendar_leaves(osv.osv):
|
||||
_inherit = "resource.calendar.leaves"
|
||||
_description = "Leave Detail"
|
||||
|
|
Loading…
Reference in New Issue