From 89b0fbd56f8f708898a5abb6e4dbf92305c2f75d Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Tue, 10 Sep 2013 10:09:19 +0200 Subject: [PATCH] [IMP] account-fincnancial-report - remove extra spaces --- account_export_csv/wizard/account_export_csv.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/account_export_csv/wizard/account_export_csv.py b/account_export_csv/wizard/account_export_csv.py index 1612f83e..38314e61 100644 --- a/account_export_csv/wizard/account_export_csv.py +++ b/account_export_csv/wizard/account_export_csv.py @@ -48,14 +48,14 @@ class AccountUnicodeWriter(object): def writerow(self, row): #we ensure that we do not try to encode none or bool row = [x or u'' for x in row] - + encoded_row = [] for c in row: if type(c) == unicode: encoded_row.append(c.encode("utf-8")) else: encoded_row.append(c) - + self.writer.writerow(encoded_row) # Fetch UTF-8 output from the queue ... data = self.queue.getvalue() @@ -144,12 +144,12 @@ class AccountCSVExport(orm.TransientModel): {'fiscalyear_id': fiscalyear_id,'company_id':company_id,'period_ids':tuple(period_range_ids)} ) res = cr.fetchall() - + rows = [] for line in res: rows.append(list(line)) return rows - + def action_manual_export_analytic(self, cr, uid, ids, context=None): this = self.browse(cr, uid, ids)[0] rows = self.get_data(cr, uid, ids,"analytic", context) @@ -172,7 +172,7 @@ class AccountCSVExport(orm.TransientModel): 'views': [(False, 'form')], 'target': 'new', } - + def _get_header_analytic(self, cr, uid, ids, context=None): return [_(u'ANALYTIC CODE'), _(u'ANALYTIC NAME'), @@ -201,7 +201,7 @@ class AccountCSVExport(orm.TransientModel): {'fiscalyear_id': fiscalyear_id,'company_id':company_id,'period_ids':tuple(period_range_ids)} ) res = cr.fetchall() - + rows = [] for line in res: rows.append(list(line))