b8e62185c43aa4d09f15eb8a61b191a4017367bf
In the pos one cannot make a payment that is larger than the required amount if there is no cash payment option. In order to check this there is a condition in the `payment_screen`. The problem is that this condition fails to spot certain cases. Steps to reproduce: - open a pos that has only one payment method and this method is `bank`; - buy an item for 10 $; - try to pay 11 $; - notice error popup; ( this is the expected behaviour ) - now try to create another payment line for any amount ( ex 9999 $ ) - as this is a different payment line the error popup will not appear; --> this is wrong In this commit we change the condition such that it detects this type of error too. closes odoo/odoo#141778 Signed-off-by: Adrien Guilliams (adgu) <adgu@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%