[IMP] when you uncheck the to_invoice at that time upper timesheet value is not uncheked.

bzr revid: nco@tinyerp.com-20130711060751-vllvxwpb0awptpom
This commit is contained in:
Nimesh Contractor (OpenERP) 2013-07-11 11:37:51 +05:30
parent 06f490605b
commit 1d85d13a73
1 changed files with 1 additions and 1 deletions

View File

@ -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')