From 442981388721be6f6b40ca142346b2d3282b9408 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 14 Apr 2011 15:45:32 +0530 Subject: [PATCH] [IMP] Holidays: State field tooltips bzr revid: mra@mra-laptop-20110414101532-jceuzg8bx0el02p7 --- addons/hr_holidays/hr_holidays.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index 131d38d7001..ebe4948ef16 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -113,8 +113,10 @@ class hr_holidays(osv.osv): 'name': fields.char('Description', required=True, size=64), 'state': fields.selection([('draft', 'Draft'), ('confirm', 'Waiting Approval'), ('refuse', 'Refused'), ('validate1', 'Waiting Second Approval'), ('validate', 'Approved'), ('cancel', 'Cancelled')], - 'State', readonly=True, help='When the holiday request is created the state is \'Draft\'.\n It is confirmed by the user and request is sent to admin, the state is \'Waiting Approval\'.\ - If the admin accepts it, the state is \'Approved\'. If it is refused, the state is \'Refused\'.'), + 'State', readonly=True, help='The state is set to \'Draft\', when a holiday request is created.\ + \nThe state is \'Waiting Approval\', when holiday request is confirmed by user.\ + \nThe state is \'Refused\', when holiday request is refused by manager.\ + \nThe state is \'Approved\', when holiday request is approved by manager.'), 'user_id':fields.related('employee_id', 'user_id', type='many2one', relation='res.users', string='User', store=True), 'date_from': fields.datetime('Start Date', readonly=True, states={'draft':[('readonly',False)]}), 'date_to': fields.datetime('End Date', readonly=True, states={'draft':[('readonly',False)]}),