OCA/account-financial-tools

[11.0] error when attempting to print deposit slip - account_check_deposit - module - OCA - account-financial-tools package

hp-data opened this issue · 1 comments

I am using Odoo 11 CE, I have installed the "account_check_deposit" module from the OCA/account-financial-tools package -

Any attempt to print results in an Odoo Server Error with the following....

Error:
Odoo Server Error

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 84, in lookup
r = d[key]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 68, 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 0x7fc047bb5620>, 'report.internal_layout', ('en_US', True, 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/tools/cache.py", line 84, in lookup
r = d[key]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 68, 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.ui.view', <function View.get_view_id at 0x7fc03aa35400>, 1, 'report.internal_layout', (None,))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 84, in lookup
r = d[key]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 68, 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.model.data', <function IrModelData.xmlid_lookup at 0x7fc04cce3378>, 'report.internal_layout')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 373, in get_template
document = options.get('load', self.load)(template, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 85, in load
template = env['ir.ui.view'].read_template(name)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 1125, in read_template
return self._read_template(self.get_view_id(xml_id))
File "", line 2, in get_view_id
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 89, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 92, in get_view_id
return super(View, self).get_view_id(xml_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 1137, in get_view_id
return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_model.py", line 1383, in xmlid_to_res_id
return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_model.py", line 1374, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "", line 2, in xmlid_lookup
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 89, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_model.py", line 1363, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: report.internal_layout

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 1625, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
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/report_xlsx_helper/controllers/main.py", line 54, in report_routes
reportname, docids, converter, **data)
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/report_xlsx/controllers/main.py", line 50, in report_routes
reportname, docids, converter, **data
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/report_fillpdf/controllers/main.py", line 42, in report_routes
reportname, docids, converter, **data
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 1574, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/usr/lib/python3/dist-packages/odoo/addons/mis_builder/report/mis_report_instance_qweb.py", line 28, in render_qweb_pdf
return super(Report, self).render_qweb_pdf(res_ids, data)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_actions_report.py", line 650, 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/base/ir/ir_actions_report.py", line 688, in render_qweb_html
return self.render_template(self.report_name, data), 'html'
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_actions_report.py", line 482, in render_template
return view_obj.render_template(template, values)
File "/usr/lib/python3/dist-packages/odoo/addons/website_lazy_load_image/models/ir_ui_view.py", line 21, in render_template
res = super(IrUiView, self).render_template(template, values, engine)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 1230, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 113, in render
return super(View, self).render(values, engine=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)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 1239, in render
return self.env[engine].render(self.id, qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 57, in render
return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 275, in render
self.compile(template, options)(self, body.append, values or {})
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 349, in _compiled_fn
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 347, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_2033_2541
File "", line 3, in body_call_content_2540
File "", line 4, in foreach_2539
File "", line 2, in compile
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 89, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 77, in compile
return super(IrQWeb, self).compile(id_or_xml_id, options=options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 292, in compile
element, document = self.get_template(template, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 377, in get_template
raise QWebException("load could not load template", name=template)
odoo.addons.base.ir.ir_qweb.qweb.QWebException: None
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 84, in lookup
r = d[key]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 68, 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 0x7fc047bb5620>, 'report.internal_layout', ('en_US', True, 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/tools/cache.py", line 84, in lookup
r = d[key]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 68, 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.ui.view', <function View.get_view_id at 0x7fc03aa35400>, 1, 'report.internal_layout', (None,))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 84, in lookup
r = d[key]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 68, 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.model.data', <function IrModelData.xmlid_lookup at 0x7fc04cce3378>, 'report.internal_layout')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 373, in get_template
document = options.get('load', self.load)(template, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 85, in load
template = env['ir.ui.view'].read_template(name)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 1125, in read_template
return self._read_template(self.get_view_id(xml_id))
File "", line 2, in get_view_id
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 89, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 92, in get_view_id
return super(View, self).get_view_id(xml_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 1137, in get_view_id
return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_model.py", line 1383, in xmlid_to_res_id
return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_model.py", line 1374, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "", line 2, in xmlid_lookup
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 89, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_model.py", line 1363, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: report.internal_layout

load could not load template
Template: report.internal_layout

All I see in the Odoo log file is the following...

2022-10-25 19:50:57,851 9839 INFO sc11-erp00 werkzeug: 127.0.0.1 - - [25/Oct/2022 19:50:57] "POST /report/check_wkhtmltopdf HTTP/1.1" 200 -
2022-10-25 19:50:57,928 9839 WARNING sc11-erp00 odoo.addons.base.ir.ir_qweb.ir_qweb: Use new syntax for 'b'\n '' monetary widget t-options (python dict instead of deprecated JSON syntax).
2022-10-25 19:50:57,929 9839 WARNING sc11-erp00 odoo.addons.base.ir.ir_qweb.ir_qweb: Use new syntax for 'b'\n '' monetary widget t-options (python dict instead of deprecated JSON syntax).
2022-10-25 19:50:57,931 9839 WARNING sc11-erp00 odoo.addons.base.ir.ir_qweb.ir_qweb: Use new syntax for 'b''' monetary widget t-options (python dict instead of deprecated JSON syntax).
2022-10-25 19:50:58,108 9839 INFO sc11-erp00 werkzeug: 127.0.0.1 - - [25/Oct/2022 19:50:58] "POST /report/download HTTP/1.1" 200 -

Any suggestions or help would be greatly appreciated

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.