[IMP]hr-warning-message
bzr revid: pna@tinyerp.com-20120713084510-vh2wjwr7w23qoyuv
This commit is contained in:
@@ -202,7 +202,7 @@ class hr_holidays(osv.osv):
|
||||
def unlink(self, cr, uid, ids, context=None):
|
||||
for rec in self.browse(cr, uid, ids, context=context):
|
||||
if rec.state<>'draft':
|
||||
raise osv.except_osv(_('Warning!'),_('You cannot delete a leave which is not in draft status !'))
|
||||
raise osv.except_osv(_('Warning!'),_('You cannot delete a leave, because it\'s not in draft state !'))
|
||||
return super(hr_holidays, self).unlink(cr, uid, ids, context)
|
||||
|
||||
def onchange_date_from(self, cr, uid, ids, date_to, date_from):
|
||||
|
||||
Reference in New Issue
Block a user