[7.0] NotImplementedError: Unknown report type: webkit in test yaml

Bug #1208309 reported by Moisés López - http://www.vauxoo.com
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

1) Steps to reproduce the issue you have observed
  -Install "report_webkit" module
  -Create a new module with a report webkit sample e.g. "report_webkit_sample"
  -Create a test yaml with call to this report
    (data, format) = netsvc.LocalService('report'+report_name).create(cr, uid, invoice_id, {}, {})
2) The result you observed
"""
   13-08-05 03:44:07,032 13034 ERROR openerp_70_test_yaml_14 openerp.modules.loading: module l10n_mx_facturae: an exception occurred in a test
Traceback (most recent call last):
  File "../7.0/server/openerp/modules/loading.py", line 83, in load_test
    _load_data(cr, module_name, idref, mode, 'test')
  File "../7.0/server/openerp/modules/loading.py", line 122, in _load_data
    tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
  File "../7.0/server/openerp/tools/yaml_import.py", line 928, in yaml_import
    yaml_interpreter.process(yaml_string)
  File "../7.0/server/openerp/tools/yaml_import.py", line 864, in process
    self._process_node(node)
  File "../7.0/server/openerp/tools/yaml_import.py", line 877, in _process_node
    self.process_python(node)
  File "../7.0/server/openerp/tools/yaml_import.py", line 550, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File "../7.0/addons_all/l10n_mx_facturae/test/account_invoice_cfd.yml", line 4, in <module>
    !record {model: account.invoice, id: account_invoice_cfd0, view: account.invoice_form}:
  File "../7.0/server/openerp/report/report_sxw.py", line 443, in create
    raise NotImplementedError(_('Unknown report type: %s') % report_type)
NotImplementedError: Unknown report type: webkit
"""

3) The result you expected
The correct generate of report.

4)
  server revno 5042
  addons revno 9344

5) OpenERP-7.0

Tags: maintenance

Related branches

Changed in openobject-server:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

This is the patch that fixes the bug

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.