Correct pylint warning: W0621(redefined-outer-name)
xlwt is imported, no need to pass it it in the argumentspull/28/head
parent
79798cb9f7
commit
9fddff5b26
|
@ -235,7 +235,7 @@ class account_journal_xls(report_xls):
|
||||||
self.aml_cell_style_decimal]},
|
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'])
|
cell_style = xlwt.easyxf(_xs['xls_title'])
|
||||||
report_name = (10 * ' ').join([
|
report_name = (10 * ' ').join([
|
||||||
_p.company.name,
|
_p.company.name,
|
||||||
|
@ -251,7 +251,7 @@ class account_journal_xls(report_xls):
|
||||||
ws, row_pos, row_data, row_style=cell_style)
|
ws, row_pos, row_data, row_style=cell_style)
|
||||||
return row_pos + 1
|
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
|
wanted_list = self.wanted_list
|
||||||
debit_pos = self.debit_pos
|
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)
|
ws, row_pos, row_data, row_style=self.rt_cell_style_right)
|
||||||
return row_pos + 1
|
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):
|
if not _p.tax_codes(o):
|
||||||
return row_pos
|
return row_pos
|
||||||
|
@ -400,9 +400,9 @@ class account_journal_xls(report_xls):
|
||||||
ws.footer_str = self.xls_footers['standard']
|
ws.footer_str = self.xls_footers['standard']
|
||||||
|
|
||||||
# Data
|
# Data
|
||||||
row_pos = self._journal_title(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, xlwt, _xs)
|
row_pos = self._journal_lines(o, ws, _p, row_pos, _xs)
|
||||||
row_pos = self._journal_vat_summary(o, ws, _p, row_pos, xlwt, _xs)
|
row_pos = self._journal_vat_summary(o, ws, _p, row_pos, _xs)
|
||||||
|
|
||||||
account_journal_xls('report.nov.account.journal.xls', 'account.journal.period',
|
account_journal_xls('report.nov.account.journal.xls', 'account.journal.period',
|
||||||
parser=account_journal_xls_parser)
|
parser=account_journal_xls_parser)
|
||||||
|
|
Loading…
Reference in New Issue