45441f6fbba3c98eadbdbec10fd4bd2c8d86bc01
The amount of cash present in the POS may be incorrect To reproduce the error: 1. In POS settings, enable "Advanced Cash Control" 2. Start a POS session 3. Make an order of 70$, payment in cash 4. Close the POS session (correctly set the closing cash) 5. Start a POS session, close it (correctly set the closing cash) Error: Back to kanban view, the information about the POS are incorrect: the cash balance is equal to zero, it should be $70 The value of the cash balance is computed in `_compute_last_session`: https://github.com/odoo/odoo/blob/5ea1d31df9041ca7b25fbea6178e798e62bebca0/addons/point_of_sale/models/pos_config.py#L276-L291 This method gets the last session and extracts the information. However, in the above case, there were no sales during the last session (step 5). In such situation, the bank statement of cash is deleted. As a result, in `_compute_last_session`, `last_session_closing_cashbox` will be defined to `False`. This is the reason why the cash balance will be equal to 0 The deletion of `cash_register` has been introduced in case the user closes a session that does not contain any SO. This fix suggests keeping such a bank statement and automatically posting it. Linked to OPW-2507394 closes odoo/odoo#72663 X-original-commit: dae9ba62d98d4238600ccd637dd5e879f1cac903 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com> Signed-off-by: Adrien Widart <adwid@users.noreply.github.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%