OCA / stock-logistics-reporting

Provides Odoo Logistics reporting modules
https://odoo-community.org/psc-teams/logistics-18
GNU Affero General Public License v3.0
66 stars 232 forks source link

[16.0]stock_picking_report_valued report reserver units error #278

Closed loida-vm closed 9 months ago

loida-vm commented 1 year ago

Module

stock_picking_report_valued

Describe the bug

Traceback (most recent call last): File "<759>", line 1660, in template_759 File "<759>", line 1642, in template_759_content File "<759>", line 1625, in template_759_t_call_0 File "<759>", line 506, in template_759_t_call_1 AttributeError: 'stock.picking' object has no attribute 'move_lines'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/opt/odoo/addons/web/controllers/report.py", line 113, in report_download response = self.report_routes(reportname, docids=docids, converter=converter, context=context) File "/opt/odoo/odoo/http.py", line 697, in route_wrapper result = endpoint(self, *args, params_ok) File "/opt/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 "/opt/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 "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 807, in _render_qweb_pdf collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids) File "/opt/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 "/opt/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 "/opt/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 "/opt/odoo/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 "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 884, in _render_qweb_html return self._render_template(report.report_name, data), 'html' File "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 623, in _render_template return view_obj._render_template(template, values).encode() File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 2128, in _render_template return self.env['ir.qweb']._render(template, values) File "/opt/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render return method_render(self, template, values, **options) File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 580, in _render result = ''.join(rendering) File "<764>", line 65, in template_764 File "<764>", line 52, in template_764_content File "<759>", line 1666, in template_759 odoo.addons.base.models.ir_qweb.QWebException: Error while render the template AttributeError: 'stock.picking' object has no attribute 'move_lines' Template: stock.report_delivery_document Path: /t/t/t/div/table[1]/thead/tr/th[1] Node:

The above server error caused the following client error: RPC_ERROR: Odoo Server Error RPCError@http://oca-stock-logistics-reporting-16-0-c13047c88ed4.runboat.odoo-community.org/web/assets/466-d4393d1/web.assets_backend.min.js:969:274 makeErrorFromResponse@http://oca-stock-logistics-reporting-16-0-c13047c88ed4.runboat.odoo-community.org/web/assets/466-d4393d1/web.assets_backend.min.js:973:163 download._download/</xhr.onload/decoder.onload@http://oca-stock-logistics-reporting-16-0-c13047c88ed4.runboat.odoo-community.org/web/assets/466-d4393d1/web.assets_backend.min.js:961:7

Steps to reproduce the behavior:

  1. Picking valued with reserved quantity
  2. Go to Print > Delivery Slip
  3. Error

Expected behavior To can print a Delivery Slip with the reserved quantity

@moduon MT-3021

github-actions[bot] commented 11 months ago

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.