[FIX] hr_timesheet_invoice: error in sql query introduced in previous commit

bzr revid: qdp-launchpad@openerp.com-20120726115927-6qys36d1eecqfmuj
This commit is contained in:
Quentin (OpenERP) 2012-07-26 13:59:27 +02:00
parent 6c1bc3975e
commit 130de4f1a3
1 changed files with 1 additions and 1 deletions

View File

@ -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'):