-
Notifications
You must be signed in to change notification settings - Fork 379
Description
Hi Odoo mates,
I have used your add-ons for my accounting. I need urgent help for error I am getting in your 16.0 branch code. It's related to your accounting report model. The error detail is:
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/report.py", line 120, in report_download
response = self.report_routes(reportname, converter=converter, context=context, **data)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 697, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/usr/lib/python3/dist-packages/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 "/usr/lib/python3/dist-packages/odoo/addons/account/models/ir_actions_report.py", line 58, in _render_qweb_pdf
return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 819, in _render_qweb_pdf
collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/usr/lib/python3/dist-packages/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 "/usr/lib/python3/dist-packages/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 "/usr/lib/python3/dist-packages/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 "/usr/lib/python3/dist-packages/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 "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 895, in _render_qweb_html
data = self._get_rendering_context(report, docids, data)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 910, in _get_rendering_context
data.update(report_model._get_report_values(docids, data=data))
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 157, in _get_report_values
report_lines = self.get_account_lines(data.get('form'))
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 89, in get_account_lines
res = self.with_context(data.get('used_context'))._compute_report_balance(child_reports)
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 78, in _compute_report_balance
res2 = self._compute_report_balance(report.children_ids)
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 78, in _compute_report_balance
res2 = self._compute_report_balance(report.children_ids)
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 72, in _compute_report_balance
res2 = self._compute_report_balance(report.account_report_id)
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 78, in _compute_report_balance
res2 = self._compute_report_balance(report.children_ids)
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 78, in _compute_report_balance
res2 = self._compute_report_balance(report.children_ids)
File "/var/odoo/hillspan.com/extra-addons/odooapps.git-6547aa6543df6/accounting_pdf_reports/report/report_financial.py", line 78, in _compute_report_balance
res2 = self._compute_report_balance(report.children_ids)
[Previous line repeated 951 more times]
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 4349, in get
return super().get(records, owner)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2797, in get
return super().get(records, owner)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1160, in get
value = env.cache.get(record, self)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 988, in get
field_cache = self._get_field_cache(record, field)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 952, in _get_field_cache
if field_cache and model.pool.field_depends_context[field]:
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 1041, in getitem
return self.get(key, ())
RecursionError: maximum recursion depth exceeded while calling a Python object
The above server error caused the following client error:
RPC_ERROR://capitalspice.hillspan.com/web/assets/debug/web.assets_backend.js:10383:19) (/web/static/src/core/network/rpc_service.js:34)
at decoder.onload (https://capitalspice.hillspan.com/web/assets/debug/web.assets_backend.js:10273:25) (/web/static/src/core/network/download.js:551)
Can you please fix this immediately?
Thank you in advance.