I can successfully print journal entries if no analytic account is tagged. but if I take a print with analytic account tagged journal item getting the below error:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/api.py", line 983, in get
cache_value = field_cache[record._ids[0]]
KeyError: '2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/fields.py", line 1139, in __get__
value = env.cache.get(record, self)
File "/home/odoo/src/odoo/odoo/api.py", line 990, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: "account.analytic.account('2',).name"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<2124>", line 516, in template_2124
File "<2124>", line 498, in template_2124_content
File "<2124>", line 356, in template_2124_t_call_0
File "/home/odoo/src/odoo/odoo/fields.py", line 1169, in __get__
raise MissingError("\n".join([
odoo.exceptions.MissingError: Record does not exist or has been deleted.
(Record: account.analytic.account('2',), User: 2)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/addons/web/controllers/report.py", line 113, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
File "/home/odoo/src/odoo/odoo/http.py", line 699, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/src/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/odoo/src/odoo/addons/account/models/ir_actions_report.py", line 57, in _render_qweb_pdf
return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 801, in _render_qweb_pdf
collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/home/odoo/src/odoo/addons/account_edi_ubl_cii/models/ir_actions_report.py", line 58, in _render_qweb_pdf_prepare_streams
collected_streams = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/home/odoo/src/odoo/addons/account_edi/models/ir_actions_report.py", line 14, in _render_qweb_pdf_prepare_streams
collected_streams = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/home/odoo/src/odoo/addons/account/models/ir_actions_report.py", line 20, in _render_qweb_pdf_prepare_streams
return super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 702, 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/odoo/src/enterprise/web_studio/models/ir_actions_report.py", line 19, in _render_qweb_html
return super(IrActionsReport, self)._render_qweb_html(report_ref, docids, data)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 878, in _render_qweb_html
return self._render_template(report.report_name, data), 'html'
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 617, in _render_template
return view_obj._render_template(template, values).encode()
File "/home/odoo/src/odoo/addons/website/models/ir_ui_view.py", line 418, in _render_template
return super()._render_template(template, values=values)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 2120, in _render_template
return self.env['ir.qweb']._render(template, values)
File "/home/odoo/src/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 580, in _render
result = ''.join(rendering)
File "<2125>", line 80, in template_2125
File "<2125>", line 62, in template_2125_content
File "<2125>", line 50, in template_2125_t_call_0
File "<2124>", line 522, in template_2124
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
MissingError: Record does not exist or has been deleted.
(Record: account.analytic.account('2',), User: 2)
Template: bi_print_journal_entries.journal_entry_template_report_view
Path: /t/t/div/table[2]/tbody/t[3]/tr/td[5]/span/div/t[1]
Node:
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (https://rokket-odoo-bah-repo-staging-7668479.dev.odoo.com/web/assets/debug/web.assets_backend.js:10380:19) (/web/static/src/core/network/rpc_service.js:34)
at decoder.onload (https://rokket-odoo-bah-repo-staging-7668479.dev.odoo.com/web/assets/debug/web.assets_backend.js:10268:29) (/web/static/src/core/network/download.js:520)any help is much appreciated on this.