[MERGE] OPW 584776: hr_timesheet_invoice: use right product for invoice taxes when...
authorXavier ALT <xal@openerp.com>
Thu, 28 Feb 2013 18:23:46 +0000 (19:23 +0100)
committerXavier ALT <xal@openerp.com>
Thu, 28 Feb 2013 18:23:46 +0000 (19:23 +0100)
bzr revid: xal@openerp.com-20130228182346-cnrxnrx2p38pjhwy

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()