From a0d91b54101ee9fea6e84a412853e3ad23c71ac8 Mon Sep 17 00:00:00 2001 From: Vincent Renaville Date: Thu, 11 Apr 2013 14:00:58 +0200 Subject: [PATCH] [FIX] group by --- account_export_csv/wizard/account_export_csv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_export_csv/wizard/account_export_csv.py b/account_export_csv/wizard/account_export_csv.py index 851e08db..76c96fe0 100644 --- a/account_export_csv/wizard/account_export_csv.py +++ b/account_export_csv/wizard/account_export_csv.py @@ -140,7 +140,7 @@ class AccountCSVExport(orm.TransientModel): from account_move_line as aml,account_account as ac where aml.account_id = ac.id and period_id in %(period_ids)s - group by ac.id,ac.code + group by ac.id,ac.code,ac.name order by ac.code """, {'fiscalyear_id': fiscalyear_id,'company_id':company_id,'period_ids':tuple(period_range_ids)} @@ -220,7 +220,7 @@ class AccountCSVExport(orm.TransientModel): where aml.account_id = ac.id and aml.analytic_account_id = aac.id and period_id in %(period_ids)s - group by aac.id,aac.code,ac.id,ac.code + group by aac.id,aac.code,aac.name,ac.id,ac.code,ac.name order by aac.code """, {'fiscalyear_id': fiscalyear_id,'company_id':company_id,'period_ids':tuple(period_range_ids)}