From 1d85d13a73811470898a67c40e4d80a2ff265ce9 Mon Sep 17 00:00:00 2001 From: "Nimesh Contractor (OpenERP)" Date: Thu, 11 Jul 2013 11:37:51 +0530 Subject: [PATCH] [IMP] when you uncheck the to_invoice at that time upper timesheet value is not uncheked. bzr revid: nco@tinyerp.com-20130711060751-vllvxwpb0awptpom --- addons/account_analytic_analysis/account_analytic_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_analytic_analysis/account_analytic_analysis.py b/addons/account_analytic_analysis/account_analytic_analysis.py index 15a7e0a5d49..422def483d2 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis.py +++ b/addons/account_analytic_analysis/account_analytic_analysis.py @@ -621,7 +621,7 @@ class account_analytic_account(osv.osv): def onchange_invoice_on_timesheets(self, cr, uid, ids, invoice_on_timesheets, context=None): if not invoice_on_timesheets: - return {'value': {'use_timesheets':False, 'to_invoice':False}} + return {'value': {'to_invoice':False}} result = {'value': {'use_timesheets': True}} try: to_invoice = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'hr_timesheet_invoice', 'timesheet_invoice_factor1')