Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2295 Zobrazení
Traceback (most recent call last):
  File "/home/dev/work16/odoo/addons/web/controllers/report.py", line 113, in report_download
    response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
  File "/home/dev/work16/odoo/odoo/http.py", line 697, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/home/dev/work16/odoo/addons/web/controllers/report.py", line 42, in report_routes
    pdf = report.with_context(context)._render_qweb_pdf(reportname, docids, data=data)[0]
  File "/home/dev/work16/odoo/odoo/addons/base/models/ir_actions_report.py", line 807, in _render_qweb_pdf
    collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
  File "/home/dev/work16/odoo/odoo/addons/base/models/ir_actions_report.py", line 708, in _render_qweb_pdf_prepare_streams
    html = self.with_context(**additional_context)._render_qweb_html(report_ref, res_ids_wo_stream, data=data)[0]
  File "/home/dev/work16/odoo/odoo/addons/base/models/ir_actions_report.py", line 884, in _render_qweb_html
    return self._render_template(report.report_name, data), 'html'
  File "/home/dev/work16/odoo/odoo/addons/base/models/ir_actions_report.py", line 623, in _render_template
    return view_obj._render_template(template, values).encode()
  File "/home/dev/work16/odoo/odoo/addons/base/models/ir_ui_view.py", line 2128, in _render_template
    return self.env['ir.qweb']._render(template, values)
  File "/home/dev/work16/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
    return method_render(self, template, values, **options)
  File "/home/dev/work16/odoo/odoo/addons/base/models/ir_qweb.py", line 579, in _render
    rendering = render_template(irQweb, values)
  File "", line 5, in not_found_template
ValueError: External ID not found in the system: library_app.book_catalog

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    at makeErrorFromResponse (http://localhost:8069/web/assets/debug/web.assets_backend.js:10342:19) (/web/static/src/core/network/rpc_service.js:34)
    at decoder.onload (http://localhost:8069/web/assets/debug/web.assets_backend.js:10230:29) (/web/static/src/core/network/download.js:539)


Avatar
Zrušit
Nejlepší odpověď

Hi,

As this is into  custom module, it'll be difficult to give you the exact solution, without having access to the whole code.

However, it points out that it cannot locate your template 'library_app.book_catalog'.

This may happen for several reasons, some of them are:

  • template name is mispelled
  • module name (library_app) is mispelled
  • module is not declared as dependency (if separate, from the one printing the report).
  • template definition file is not mentionned in your manifest, thus you report is not available in your system,
  • ...

Not that much, but I hope this helps.

Regards,

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 25
528
1
pro 24
3897
0
lis 24
1018
3
srp 22
4468
0
led 22
3027