From 1de90983b809959f7b6a4ae28811a08298747fc8 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 19 Nov 2014 15:17:16 +0100 Subject: [PATCH] W0621(redefined-outer-name) I didn't want to remove the argument on a stable module but I see no reason to have this as an argument --- .../report/nov_account_journal_xls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/account_journal_report_xls/report/nov_account_journal_xls.py b/account_journal_report_xls/report/nov_account_journal_xls.py index 57cdcd40..e2d68631 100644 --- a/account_journal_report_xls/report/nov_account_journal_xls.py +++ b/account_journal_report_xls/report/nov_account_journal_xls.py @@ -235,8 +235,8 @@ class account_journal_xls(report_xls): self.aml_cell_style_decimal]}, } - def _journal_title(self, o, ws, _p, row_pos, xlwt, _xs): - cell_style = xlwt.easyxf(_xs['xls_title']) + def _journal_title(self, o, ws, _p, row_pos, xlwtlib, _xs): + cell_style = xlwtlib.easyxf(_xs['xls_title']) report_name = (10 * ' ').join([ _p.company.name, _p.title(o)[0], @@ -251,7 +251,7 @@ class account_journal_xls(report_xls): ws, row_pos, row_data, row_style=cell_style) return row_pos + 1 - def _journal_lines(self, o, ws, _p, row_pos, xlwt, _xs): + def _journal_lines(self, o, ws, _p, row_pos, xlwtlib, _xs): wanted_list = self.wanted_list debit_pos = self.debit_pos @@ -305,12 +305,12 @@ class account_journal_xls(report_xls): ws, row_pos, row_data, row_style=self.rt_cell_style_right) return row_pos + 1 - def _journal_vat_summary(self, o, ws, _p, row_pos, xlwt, _xs): + def _journal_vat_summary(self, o, ws, _p, row_pos, xlwtlib, _xs): if not _p.tax_codes(o): return row_pos - title_cell_style = xlwt.easyxf(_xs['bold']) + title_cell_style = xlwtlib.easyxf(_xs['bold']) c_specs = [('summary_title', 1, 0, 'text', _p._("VAT Declaration"))] row_data = self.xls_row_template(c_specs, [x[0] for x in c_specs]) row_pos = self.xls_write_row(