[FIX] hr_timesheet_invoice: use product price on invoice even when not forcing

bzr revid: mat@openerp.com-20130724115907-i61nvau0d5jd5jrc
This commit is contained in:
Martin Trigaux 2013-07-24 13:59:07 +02:00
parent 9a688f2464
commit 6365f69b4d
1 changed files with 1 additions and 3 deletions

View File

@ -247,9 +247,7 @@ class account_analytic_line(osv.osv):
ctx = context.copy()
ctx.update({'uom': uom})
# check force product
if data.get('product'):
price = self._get_invoice_price(cr, uid, account, product_id, user_id, qty, ctx)
price = self._get_invoice_price(cr, uid, account, product_id, user_id, qty, ctx)
general_account = product.property_account_income or product.categ_id.property_account_income_categ
if not general_account: