[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:
parent
06f490605b
commit
1d85d13a73
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue