Skip to content

Commit

Permalink
Merge pull request #63 from sergiocorato/fix_report_xls
Browse files Browse the repository at this point in the history
[FIX][8.0] revert class renamed report_xls
  • Loading branch information
pedrobaeza committed Jul 26, 2016
2 parents 2895aef + b7a757d commit a5c2e77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions report_xls/report_xls.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, *args, **kwargs):
self.__dict__ = self


class ReportXls(report_sxw):
class report_xls(report_sxw):

xls_types = {
'bool': xlwt.Row.set_cell_boolean,
Expand Down Expand Up @@ -112,7 +112,7 @@ def create(self, cr, uid, ids, data, context=None):
# use model from 'data' when no ir.actions.report.xml entry
self.table = data.get('model') or self.table
return self.create_source_xls(cr, uid, ids, data, context)
return super(ReportXls, self).create(cr, uid, ids, data, context)
return super(report_xls, self).create(cr, uid, ids, data, context)

def create_source_xls(self, cr, uid, ids, data, context=None):
if not context:
Expand Down Expand Up @@ -206,7 +206,7 @@ def xls_row_template(self, specs, wanted_list):
c.append({'formula': s[5]})
else:
c.append({
'write_cell_func': ReportXls.xls_types[c[3]]})
'write_cell_func': report_xls.xls_types[c[3]]})
# Set custom cell style
if s_len > 6 and s[6] is not None:
c.append(s[6])
Expand All @@ -221,7 +221,7 @@ def xls_row_template(self, specs, wanted_list):
col += c[1]
break
if not found:
_logger.warn("ReportXls.xls_row_template, "
_logger.warn("report_xls.xls_row_template, "
"column '%s' not found in specs", w)
return r

Expand All @@ -235,7 +235,7 @@ def xls_write_row(self, ws, row_pos, row_data,
style = spec[6] and spec[6] or row_style
if not data:
# if no data, use default values
data = ReportXls.xls_types_default[spec[3]]
data = report_xls.xls_types_default[spec[3]]
if size != 1:
if formula:
ws.write_merge(
Expand Down

0 comments on commit a5c2e77

Please sign in to comment.