Skip to content

Partner Statement (error while generating the report) #1309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
algarih opened this issue Apr 15, 2025 · 0 comments
Open

Partner Statement (error while generating the report) #1309

algarih opened this issue Apr 15, 2025 · 0 comments
Labels

Comments

@algarih
Copy link

algarih commented Apr 15, 2025

Module

Partner Statement

Describe the bug

after installing of Financial reporting module including Partner Statement app, i activated it from the settings and went to generating the Statement of account, then i got this error:

500: Internal Server Error [Traceback](https://xxxxxxxxx/report/html/partner_statement.outstanding_statement?options=%7B%22date_end%22%3A%222025-04-15%22%2C%22company_id%22%3A1%2C%22partner_ids%22%3A%5B10%5D%2C%22show_aging_buckets%22%3Afalse%2C%22filter_non_due_partners%22%3Afalse%2C%22account_type%22%3A%22asset_receivable%22%2C%22aging_type%22%3A%22days%22%2C%22filter_negative_balances%22%3Afalse%2C%22is_outstanding%22%3Atrue%7D&context=%7B%22params%22%3A%7B%22id%22%3A10%2C%22cids%22%3A1%2C%22menu_id%22%3A148%2C%22action%22%3A295%2C%22model%22%3A%22res.partner%22%2C%22view_type%22%3A%22form%22%7D%2C%22res_partner_search_mode%22%3A%22customer%22%2C%22lang%22%3A%22en_US%22%2C%22tz%22%3A%22Asia%2FBahrain%22%2C%22uid%22%3A2%2C%22allowed_company_ids%22%3A%5B1%5D%2C%22active_model%22%3A%22res.partner%22%2C%22active_domain%22%3A%5B%5B%22customer_rank%22%2C%22%3E%22%2C0%5D%5D%2C%22active_id%22%3A10%2C%22active_ids%22%3A%5B10%5D%2C%22default_is_company%22%3Atrue%2C%22default_customer_rank%22%3A1%7D#error_traceback) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 1788, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 152, in retrying result = func() File "/usr/lib/python3/dist-packages/odoo/http.py", line 1816, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/usr/lib/python3/dist-packages/odoo/http.py", line 1933, in dispatch return self.request.registry['ir.http']._dispatch(endpoint) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 221, in _dispatch result = endpoint(**request.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 757, in route_wrapper result = endpoint(self, *args, **params_ok) File "/mnt/extra-addons/docx_report/controllers/main.py", line 68, in report_routes return super(DocxReportController, self).report_routes(reportname, docids, converter, **data) File "/usr/lib/python3/dist-packages/odoo/http.py", line 757, in route_wrapper result = endpoint(self, *args, **params_ok) File "/mnt/extra-addons/report_xlsx_helper/controllers/main.py", line 51, in report_routes return super().report_routes(reportname, docids, converter, **data) File "/usr/lib/python3/dist-packages/odoo/http.py", line 757, in route_wrapper result = endpoint(self, *args, **params_ok) File "/mnt/extra-addons/report_xlsx/controllers/main.py", line 51, in report_routes return super().report_routes(reportname, docids, converter, **data) File "/usr/lib/python3/dist-packages/odoo/http.py", line 757, in route_wrapper result = endpoint(self, *args, **params_ok) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/report.py", line 39, in report_routes html = report.with_context(context)._render_qweb_html(reportname, docids, data=data)[0] File "/mnt/extra-addons/account_financial_report/models/ir_actions_report.py", line 19, in _render_qweb_html return super(IrActionsReport, obj)._render_qweb_html( File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 996, in _render_qweb_html data = self._get_rendering_context(report, docids, data) File "/usr/lib/python3/dist-packages/odoo/addons/stock/models/ir_actions_report.py", line 8, in _get_rendering_context data = super()._get_rendering_context(report, docids, data) File "/usr/lib/python3/dist-packages/odoo/addons/account/models/ir_actions_report.py", line 77, in _get_rendering_context data = super()._get_rendering_context(report, docids, data) File "/mnt/extra-addons/custom_report_field/models/ir_actions_report.py", line 57, in _get_rendering_context data = super()._get_rendering_context(report, docids, data) File "/mnt/extra-addons/report_monetary_helpers/models/ir_actions_report.py", line 16, in _get_rendering_context data = super()._get_rendering_context(report, docids, data) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 1011, in _get_rendering_context data.update(report_model._get_report_values(docids, data=data)) File "/mnt/extra-addons/OCA_account_financial_reporting/partner_statement/report/outstanding_statement.py", line 158, in _get_report_values data.update(wiz.create({})._prepare_statement()) File "<decorator-gen-12>", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 430, in _model_create_multi return create(self, [arg]) File "/usr/lib/python3/dist-packages/odoo/models.py", line 4595, in create new_vals_list = self._prepare_create_values(vals_list) File "/usr/lib/python3/dist-packages/odoo/models.py", line 4748, in _prepare_create_values vals = self._add_missing_default_values(vals) File "/usr/lib/python3/dist-packages/odoo/models.py", line 1826, in _add_missing_default_values defaults = self.default_get(missing_defaults) File "/usr/lib/python3/dist-packages/odoo/models.py", line 1508, in default_get defaults[name] = field.default(self) File "/mnt/extra-addons/OCA_account_financial_reporting/partner_statement/wizard/statement_common.py", line 23, in <lambda> default=lambda self: len(self._context["active_ids"]) TypeError: object of type 'NoneType' has no len()

To Reproduce

Odoo 17

Steps to reproduce the behavior:

  1. select a vendor
  2. action menu > print Statement of Account
  3. fill the details and click view

Expected behavior
i am expecting to get the Statement of Account report

@algarih algarih added the bug label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant