From 6365f69b4d57003195243e7c0a9b84a91b320b2e Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 24 Jul 2013 13:59:07 +0200 Subject: [PATCH] [FIX] hr_timesheet_invoice: use product price on invoice even when not forcing bzr revid: mat@openerp.com-20130724115907-i61nvau0d5jd5jrc --- addons/hr_timesheet_invoice/hr_timesheet_invoice.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index a3db06c49ab..ba28dd9253a 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -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: