Odoo CE 17.0.1.0
If I create a quote without notes or sections, the pdf file and sending the quote work correctly.
While if I add a section or a note I get this error:
Traceback (most recent call last):
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/models.py", line 5830, in ensure_one
_id, = self._ids
^^^^
ValueError: not enough values to unpack (expected 1, got 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/addons/web/controllers/report.py", line 113, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/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/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/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 "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/addons/base/models/ir_actions_report.py", line 839, in _render_qweb_pdf
collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/addons/sale_pdf_quote_builder/models/ir_actions_report.py", line 60, in _render_qweb_pdf_prepare_streams
form_fields = self._get_form_fields_mapping(order)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/addons/sale_pdf_quote_builder/models/ir_actions_report.py", line 142, in _get_form_fields_mapping
form_fields_mapping.update(self._get_sol_form_fields_mapping(line))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/addons/sale_pdf_quote_builder/models/ir_actions_report.py", line 167, in _get_sol_form_fields_mapping
f'{line.id}_product_sale_price': format_amount(
^^^^^^^^^^^^^^
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/tools/misc.py", line 1592, in format_amount
formatted_amount = lang.format(fmt, currency.round(amount), grouping=True, monetary=True)\
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/addons/base/models/res_currency.py", line 217, in round
self.ensure_one()
File "/opt/bitnami/odoo/lib/odoo-17.0.post20240105-py3.11.egg/odoo/models.py", line 5833, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: res.currency()
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPCError@http://192.168.68.129/web/assets/78761fe/web.assets_web.min.js:2871:319
makeErrorFromResponse@http://192.168.68.129/web/assets/78761fe/web.assets_web.min.js:2874:163
configureBlobDownloadXHR/xhr.onload/decoder.onload@http://192.168.68.129/web/assets/78761fe/web.assets_web.min.js:2860:7Does anyone have any suggestions on how I can resolve this?