[FIX] analytic_user_function: hr.timesheet user onchange
Make additional argument to on_change_user_id in analytic_user_function optional so that it wont break other modules.
This commit is contained in:
parent
4fdd99588c
commit
d1d4688521
|
@ -118,7 +118,7 @@ class hr_analytic_timesheet(osv.osv):
|
|||
res ['value']['general_account_id']= a
|
||||
return res
|
||||
|
||||
def on_change_user_id(self, cr, uid, ids, user_id, account_id, unit_amount=0):
|
||||
def on_change_user_id(self, cr, uid, ids, user_id, account_id=False, unit_amount=0):
|
||||
res = super(hr_analytic_timesheet, self).on_change_user_id(cr, uid, ids, user_id)
|
||||
|
||||
if account_id:
|
||||
|
|
Loading…
Reference in New Issue