Browse Source

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
pull/29/head
Guewen Baconnier 10 years ago
parent
commit
1de90983b8
  1. 10
      account_journal_report_xls/report/nov_account_journal_xls.py

10
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(

Loading…
Cancel
Save