[MERGE] OPW 584776: hr_timesheet_invoice: use right product for invoice taxes when...
[odoo/odoo.git] / addons / hr_timesheet_invoice / wizard / hr_timesheet_invoice_create.py
index 134bde8..dc5fd48 100644 (file)
@@ -115,6 +115,7 @@ class account_analytic_line(osv.osv):
                         factor_name = product.name
                 else:
                     data['product'] = data['product'][0]
+                    product = product_obj.browse(cr, uid, data['product'], context=context2)
                     factor_name = product_obj.name_get(cr, uid, [data['product']], context=context)[0][1]
 
                 ctx =  context.copy()