From 9dab28d36e4bac8741050f4ab293076323a99fcf Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 26 Jul 2012 14:31:58 +0200 Subject: [PATCH] [FIX] hr_timesheet_invoice: name_get() only support to receive a list of ids as parameter bzr revid: qdp-launchpad@openerp.com-20120726123158-08ajmydd95ixpp2d --- .../hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py index 0945b8f81fb..c9b2439596d 100644 --- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py +++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py @@ -103,7 +103,7 @@ class account_analytic_line(osv.osv): if not product: raise osv.except_osv(_('Error'), _('There is no product defined for the line %s. Please select one or force the product through the wizard.') % (line_name)) factor = invoice_factor_obj.browse(cr, uid, factor_id, context=context2) - factor_name = product_obj.name_get(cr, uid, product_id, context=context2)[1] + factor_name = product_obj.name_get(cr, uid, [product_id], context=context2)[0][1] if factor.customer_name: factor_name += ' - ' + factor.customer_name