From e1cebe9003a728b1d80ec7b3f154b51dfdb437df Mon Sep 17 00:00:00 2001 From: "Richard Mathot (OpenERP)" Date: Mon, 14 Apr 2014 15:26:34 +0200 Subject: [PATCH] [REF] hr_timesheet: unused piece of code bzr revid: rim@openerp.com-20140414132634-xaps5ydbic5jriw4 --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 5bddf20ae69..e8349f68a58 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -257,7 +257,7 @@ class account_analytic_account(osv.osv): if context is None: context = {} group_template_required = self.pool['res.users'].has_group(cr, uid, 'account_analytic_analysis.group_template_required') - if not context.get('default_use_timesheets', False) or group_template_required: + if not context.get('default_use_timesheets') or group_template_required: return super(account_analytic_account, self).name_create(cr, uid, name, context=context) rec_id = self.create(cr, uid, {self._rec_name: name}, context) return self.name_get(cr, uid, [rec_id], context)[0]