ODOO 12 enterprise version.
I tried to create a new Qweb report for dropshipping delivery slip. I added 1 report and 2 views.
1. report, named Delivery Slip Dropshipping;
2. view, named web.report_deliveryslip_dropshipping.
3. view, named web.report_delivery_dropshipping_document.
I created 3 External ID for all of them.
When I tried to print the dropshipping ship slip, an error occurred.
==============
Odoo Server Error
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 88, in lookup r = d[key] File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 69, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 44, in __getitem__ a = self.d[obj].me KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f1d19456840>, 'stock.report_delivery_dropshipping_document', ('en_US', False, None, None, None, None, None)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 344, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_1560_8615 File "<template>", line 2, in foreach_8614 File "<decorator-gen-54>", line 2, in compile File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 93, in lookup value = d[key] = self.method(*args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 114, in compile return super(IrQWeb, self).compile(id_or_xml_id, options=options) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 289, in compile element, document = self.get_template(template, options) File "/usr/lib/python3/dist-packages/odoo/addons/web_studio/models/ir_qweb.py", line 27, in get_template raise ValueError("Template '%s' undefined" % template) ValueError: Template 'stock.report_delivery_dropshipping_document' undefined During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1673, in report_download response = self.report_routes(reportname, docids=docids, converter=converter) File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1614, in report_routes pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0] File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 665, in render_qweb_pdf html = self.with_context(context).render_qweb_html(res_ids, data=data)[0] File "/usr/lib/python3/dist-packages/odoo/addons/web_studio/models/ir_actions_report.py", line 15, in render_qweb_html return super(IrActionsReport, self).render_qweb_html(docids, data) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 699, in render_qweb_html return self.render_template(self.report_name, data), 'html' File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 489, in render_template return view_obj.render_template(template, values) File "/opt/odoo/apps/app_odoo_customize/models/ir_ui_view.py", line 18, in render_template return super(View, self).render_template(template, values=values, engine=engine) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1269, in render_template return self.browse(self.get_view_id(template)).render(values, engine) File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1278, in render return self.env[engine].render(self.id, qcontext) File "/usr/lib/python3/dist-packages/odoo/addons/web_studio/models/ir_qweb.py", line 48, in render return super(IrQWeb, self).render(template, values=values, **options) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 59, in render result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 272, in render self.compile(template, options)(self, body.append, values or {}) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 351, in _compiled_fn raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name) odoo.addons.base.models.qweb.QWebException: Template 'stock.report_delivery_dropshipping_document' undefined Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 88, in lookup r = d[key] File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 69, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 44, in __getitem__ a = self.d[obj].me KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f1d19456840>, 'stock.report_delivery_dropshipping_document', ('en_US', False, None, None, None, None, None)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 344, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_1560_8615 File "<template>", line 2, in foreach_8614 File "<decorator-gen-54>", line 2, in compile File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 93, in lookup value = d[key] = self.method(*args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 114, in compile return super(IrQWeb, self).compile(id_or_xml_id, options=options) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 289, in compile element, document = self.get_template(template, options) File "/usr/lib/python3/dist-packages/odoo/addons/web_studio/models/ir_qweb.py", line 27, in get_template raise ValueError("Template '%s' undefined" % template) ValueError: Template 'stock.report_delivery_dropshipping_document' undefined Error to render compiling AST ValueError: Template 'stock.report_delivery_dropshipping_document' undefined Template: 1560 Path: /templates/t/t/t Node: <t t-call="stock.report_delivery_dropshipping_document" t-lang="od.partner_id.lang"/>
I did the same thing in ODOO 10 enterprise version, had never had this issues.
Please help me to solve this problem.