Achraf (abz) c18b0c7e32 [FIX] point_of_sale: Prevent traceback if opening cash is empty
A TypeError traceback that occurs in `set_cashbox_pos`
was caught by Sentry.

If the user validates the openingCash with an empty input, the
clientside code sends an empty string instead of a number to the python
code which interprets it as a number.

https://github.com/odoo/odoo/blob/84347b43063fc3032da3e03b49fc57375d8324fc/addons/point_of_sale/models/pos_session.py#L1480-L1485

opw-3089337

closes odoo/odoo#107303

X-original-commit: 62f0117c0f5fad1cd435c65986d477432de00dfa
Signed-off-by: Achraf <abz@odoo.com>
2022-12-06 17:12:05 +01:00
2022-10-06 14:56:52 +02:00
2022-12-06 09:26:00 +01:00
…
…
…

Build Status Tech Doc Help Nightly Builds

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

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%