From 020caa17e4318a8e4134519e00b4a13962c8223d Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 27 Mar 2015 10:57:18 +0100 Subject: [PATCH] [FIX] project_timesheet: undefined employee journal error message There is no more any "timesheet" tab in the employee form. This is actually the "HR Settings" tab, nowadays. opw-631599 --- addons/project_timesheet/project_timesheet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project_timesheet/project_timesheet.py b/addons/project_timesheet/project_timesheet.py index cefb1e0ef40..fe4f940222f 100644 --- a/addons/project_timesheet/project_timesheet.py +++ b/addons/project_timesheet/project_timesheet.py @@ -88,14 +88,14 @@ class project_work(osv.osv): if not emp.journal_id: raise osv.except_osv(_('Bad Configuration!'), - _('Please define journal on the related employee.\nFill in the timesheet tab of the employee form.')) + _('Please define journal on the related employee.\nFill in the HR Settings tab of the employee form.')) acc_id = emp.product_id.property_account_expense.id if not acc_id: acc_id = emp.product_id.categ_id.property_account_expense_categ.id if not acc_id: raise osv.except_osv(_('Bad Configuration!'), - _('Please define product and product category property account on the related employee.\nFill in the timesheet tab of the employee form.')) + _('Please define product and product category property account on the related employee.\nFill in the HR Settings of the employee form.')) res['product_id'] = emp.product_id.id res['journal_id'] = emp.journal_id.id