[FIX] account_analytic_analysis: product_id_change, variable price referenced before assignment in some cases

This commit is contained in:
Denis Ledoux
2014-06-16 17:44:15 +02:00
parent 3c0292645f
commit 6b00257595
@@ -73,6 +73,7 @@ class account_analytic_invoice_line(osv.osv):
result = {}
res = self.pool.get('product.product').browse(cr, uid, product, context=local_context)
price = False
if price_unit is not False:
price = price_unit
elif pricelist_id: