After installing the base_report_to_printer module, I keep getting an error message when printing. Even when I print to the client. For some reason it does not get parameters for behaviour.
base_report_to_printer/models/ir_actions_report\.py",\ line\ 81,\ in\ behaviour
\ \ \ \ self\.ensure_one\(\)
ValueError:\ not\ enough\ values\ to\ unpack\ \(expected\ 1,\ got\ 0\)
fresh\ install\ odoo16\ CE\ on\ ubuntu\.
Full\ error\ code:
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/opt/odoo/odoo\-server/odoo/models\.py",\ line\ 5112,\ 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/odoo/odoo\-server/addons/web/controllers/report\.py",\ line\ 123,\ in\ report_download
\ \ \ \ response\ =\ self\.report_routes\(reportname,\ converter=converter,\ context=context,\ \*\*data\)
\ \ File\ "/opt/odoo/odoo\-server/odoo/http\.py",\ line\ 698,\ in\ route_wrapper
\ \ \ \ result\ =\ endpoint\(self,\ \*args,\ \*\*params_ok\)
\ \ File\ "/opt/odoo/odoo\-server/addons/web/controllers/report\.py",\ line\ 45,\ in\ report_routes
\ \ \ \ pdf\ =\ report\.with_context\(context\)\._render_qweb_pdf\(reportname,\ docids,\ data=data\)\[0\]
\ \ File\ "/opt/odoo/custom/addons/base_report_to_printer/models/ir_actions_report\.py",\ line\ 163,\ in\ _render_qweb_pdf
\ \ \ \ behaviour\ =\ self\.behaviour\(\)
\ \ File\ "/opt/odoo/custom/addons/base_report_to_printer/models/ir_actions_report\.py",\ line\ 81,\ in\ behaviour
\ \ \ \ self\.ensure_one\(\)
\ \ File\ "/opt/odoo/odoo\-server/odoo/models\.py",\ line\ 5115,\ in\ ensure_one
\ \ \ \ raise\ ValueError\("Expected\ singleton:\ %s"\ %\ self\)
ValueError:\ Expected\ singleton:\ ir\.actions\.report\(\)
The\ above\ server\ error\ caused\ the\ following\ client\ error:
RPC_ERROR:\ Odoo\ Server\ Error
\ \ \ \ at\ makeErrorFromResponse\ \(http://dfr1\.hansg\.be:8069/web/assets/360\-3faad57/web\.assets_backend\.min\.js:969:163\)
\ \ \ \ at\ decoder\.onload\ \(http://dfr1.hansg.be:8069/web/assets/360-3faad57/web.assets_backend.min.js:957:7)