[IMP]hr-warning-message

bzr revid: pna@tinyerp.com-20120713084510-vh2wjwr7w23qoyuv
This commit is contained in:
Pinakin Nayi (OpenERP)
2012-07-13 14:15:10 +05:30
parent 27226c12b2
commit bdcea123b7
+1 -1
View File
@@ -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):