Timesheet must use expense account of the product
bzr revid: ced-606f80a3c8bb9b9b2d994ca7233132929e3fd5b6
This commit is contained in:
parent
a3052f3ab6
commit
f37c1318ed
|
@ -90,9 +90,9 @@ class hr_analytic_timesheet(osv.osv):
|
|||
if emp_id:
|
||||
emp = self.pool.get('hr.employee').browse(cr, uid, emp_id[0], context=context)
|
||||
if bool(emp.product_id):
|
||||
a = emp.product_id.product_tmpl_id.property_account_income.id
|
||||
a = emp.product_id.product_tmpl_id.property_account_expense.id
|
||||
if not a:
|
||||
a = emp.product_id.categ_id.property_account_income_categ.id
|
||||
a = emp.product_id.categ_id.property_account_expense_categ.id
|
||||
if a:
|
||||
return a
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue