From d8a6f9b4e270d3fdd94464ad9182c6108dfdf723 Mon Sep 17 00:00:00 2001 From: "Jay Vora (OpenERP)" Date: Thu, 21 Apr 2011 13:21:29 +0530 Subject: [PATCH] [REF] HR_timesheet_invoice : Removed unnecesary code(Courtesy : Anup) bzr revid: jvo@tinyerp.com-20110421075129-vw7lx4ej4sot8hm7 --- .../wizard/hr_timesheet_final_invoice_create.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py index 6263498d126..ee2096760d1 100644 --- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py +++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py @@ -95,11 +95,6 @@ class final_invoice_create(osv.osv_memory): context2 = context.copy() context2['lang'] = partner.lang - cr.execute("SELECT product_id, to_invoice, sum(unit_amount) " \ - "FROM account_analytic_line as line " \ - "WHERE account_id = %s " \ - "AND to_invoice IS NOT NULL " \ - "GROUP BY product_id, to_invoice", (account.id,)) cr.execute("""SELECT line.product_id,