6ed92b666029ed1d131ed8a61ed3e6f40706a8dd
Current behavior: When you link a printer to the sales detail report. The report will contains no order. This happens because we are trying to assign docids to the session_id. Fix: Docids represent the session_id only when the report is called from the PoS directly. So we want to use it only when it's the only data passed to `_get_report_values`. If session_id is not set in the data, but other values are (date_start/stop, config_id) we should use those value in priority. When called from the frontend directly, docids doesn't represent a session_id. Steps to reproduce: -Install pos_iot -Link a printer from the demo iot to the sales_detail report (go in settings > reporting > reports) -Do some orders on the PoS, and close it -Go in the backend, and print the sales detail report -You will see that the report is empty (You can put a breakpoint in get_sale_details method to see that it will be empty) opw-3247196 closes odoo/odoo#142093 X-original-commit: d93ffa4c770364c31b2a2e0ad855bf8801f23c24 Signed-off-by: Vlad Stroia (vlst) <vlst@odoo.com> Signed-off-by: Robin Engels (roen) <roen@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%