From 130de4f1a372800ca234e77cf9c78a236c59bbbd Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 26 Jul 2012 13:59:27 +0200 Subject: [PATCH] [FIX] hr_timesheet_invoice: error in sql query introduced in previous commit bzr revid: qdp-launchpad@openerp.com-20120726115927-6qys36d1eecqfmuj --- .../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 e4df1f4801e..0945b8f81fb 100644 --- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py +++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py @@ -94,7 +94,7 @@ class account_analytic_line(osv.osv): "FROM account_analytic_line as line " \ "WHERE account_id = %s " \ "AND id IN %s AND to_invoice IS NOT NULL " \ - "GROUP BY product_id,to_invoice,product_uom_id", (account.id, tuple(ids),)) + "GROUP BY product_id, to_invoice, product_uom_id, name", (account.id, tuple(ids),)) for product_id, factor_id, qty, uom, line_name in cr.fetchall(): if data.get('product'):