From 21baf8dfac5fd73c32748f15167a3c863e477a13 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 28 Nov 2012 12:26:45 +0100 Subject: [PATCH] [FIX] hr_timesheet_invoice: fixed ambigous reference in sql query. Fixed the redbot bzr revid: qdp-launchpad@openerp.com-20121128112645-5r42r5tajeq0fzs8 --- addons/hr_timesheet_invoice/hr_timesheet_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index 0a3998623b6..af5a755e81d 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -243,7 +243,7 @@ class account_analytic_line(osv.osv): cr.execute("""SELECT product_id, user_id, to_invoice, sum(unit_amount), product_uom_id FROM account_analytic_line as line LEFT JOIN account_analytic_journal journal ON (line.journal_id = journal.id) WHERE account_id = %s - AND id IN %s AND journal.type = %s AND to_invoice IS NOT NULL + AND line.id IN %s AND journal.type = %s AND to_invoice IS NOT NULL GROUP BY product_id, user_id, to_invoice, product_uom_id""", (account.id, tuple(ids), journal_type)) for product_id, user_id, factor_id, qty, uom in cr.fetchall():