[IMP] hr_timesheet_sheet: made little change in warning message
bzr revid: cha@tinyerp.com-20121022070215-y87h55i1h8fuljuf
This commit is contained in:
parent
b7bc79d9c3
commit
12246cfb2b
|
@ -164,7 +164,7 @@ class hr_timesheet_sheet(osv.osv):
|
|||
if not self.pool.get('hr.employee').browse(cr, uid, vals['employee_id']).product_id:
|
||||
raise osv.except_osv(_('Error!'), _('In order to create a timesheet for this employee, you must link the employee to a product.'))
|
||||
if not self.pool.get('hr.employee').browse(cr, uid, vals['employee_id']).journal_id:
|
||||
raise osv.except_osv(_('Configuration Error!'), _('In order to create a timesheet for this employee, you must assign an analytic journal to the employee.'))
|
||||
raise osv.except_osv(_('Configuration Error!'), _('In order to create a timesheet for this employee, you must assign an analytic journal to the employee, like \'Timesheet Journal\'.'))
|
||||
return super(hr_timesheet_sheet, self).write(cr, uid, ids, vals, *args, **argv)
|
||||
|
||||
def button_confirm(self, cr, uid, ids, context=None):
|
||||
|
|
Loading…
Reference in New Issue