Browse Source

Correct pylint warning: W0621(redefined-outer-name)

xlwt is imported, no need to pass it it in the arguments
pull/28/head
Guewen Baconnier 10 years ago
parent
commit
9fddff5b26
  1. 12
      account_journal_report_xls/report/nov_account_journal_xls.py

12
account_journal_report_xls/report/nov_account_journal_xls.py

@ -235,7 +235,7 @@ class account_journal_xls(report_xls):
self.aml_cell_style_decimal]},
}
def _journal_title(self, o, ws, _p, row_pos, xlwt, _xs):
def _journal_title(self, o, ws, _p, row_pos, _xs):
cell_style = xlwt.easyxf(_xs['xls_title'])
report_name = (10 * ' ').join([
_p.company.name,
@ -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, _xs):
wanted_list = self.wanted_list
debit_pos = self.debit_pos
@ -305,7 +305,7 @@ 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, _xs):
if not _p.tax_codes(o):
return row_pos
@ -400,9 +400,9 @@ class account_journal_xls(report_xls):
ws.footer_str = self.xls_footers['standard']
# Data
row_pos = self._journal_title(o, ws, _p, row_pos, xlwt, _xs)
row_pos = self._journal_lines(o, ws, _p, row_pos, xlwt, _xs)
row_pos = self._journal_vat_summary(o, ws, _p, row_pos, xlwt, _xs)
row_pos = self._journal_title(o, ws, _p, row_pos, _xs)
row_pos = self._journal_lines(o, ws, _p, row_pos, _xs)
row_pos = self._journal_vat_summary(o, ws, _p, row_pos, _xs)
account_journal_xls('report.nov.account.journal.xls', 'account.journal.period',
parser=account_journal_xls_parser)
Loading…
Cancel
Save