Browse Source

[FIX] - report_xls_template: Fixed syntax errors.

pull/19/head
Glen Sojo 9 years ago
parent
commit
f46d6effc8
  1. 6
      report_xls_template/__init__.py
  2. 6
      report_xls_template/__openerp__.py
  3. 2
      report_xls_template/controllers/__init__.py
  4. 10
      report_xls_template/report.py

6
report_xls_template/__init__.py

@ -20,6 +20,6 @@
#
##############################################################################
import report
import controllers
import ir_actions_report_xml
from . import report
from . import controllers
from . import ir_actions_report_xml

6
report_xls_template/__openerp__.py

@ -42,9 +42,9 @@ Main Features
'images': [],
'depends': ['report'],
'data': [
'report_xls_view.xml',
'views/assets.xml',
],
'report_xls_view.xml',
'views/assets.xml',
],
'test': [],
'demo': [],
'installable': True,

2
report_xls_template/controllers/__init__.py

@ -20,4 +20,4 @@
#
##############################################################################
import main
from . import main

10
report_xls_template/report.py

@ -51,10 +51,10 @@ class Report(models.Model):
report_obj = self.pool[report.model]
docs = report_obj.browse(cr, uid, ids, context=context)
docargs = {
'doc_ids': ids,
'doc_model': report.model,
'docs': docs,
}
'doc_ids': ids,
'doc_model': report.model,
'docs': docs,
}
return self.pool.get('report').render(
cr, uid, [], report.report_name, docargs, context=context)
else:
@ -285,7 +285,7 @@ class Report(models.Model):
'name', _('Data') + str(worksheet_counter))):
raise Warning(_('Invalid worksheet name.'))
worksheet = workbook.add_sheet(div_worksheet.get(
'name', _('Data') + str(worksheet_counter)))
'name', _('Data') + str(worksheet_counter)))
except (Warning, Exception) as exc:
raise Warning(exc.message)
# Set number of pages

Loading…
Cancel
Save