4a48498204be75f0f4c7f7ab30cb755087a8af77
Without this the payment line amount is overridden before the request is made to Mercury. When a Mercury payment method is clicked a payment line with the right amount is created. When a card is swiped it types a sequence like: %B999000090000009^TEST... The "typed" numbers are immediately interpreted by NumberBuffer and will result in the payment line amount being updated to something like 9990000.... When the "barcode" is finished credit_code_transaction() in pos_mercury will do the request using the amount from the payment line (swipe_pending_line.get_amount()). As a result a request is made to Mercury with a huge amount which results in an error: "Error 1000211: Invalid Field - Purchase Amount". Luckily NumberBuffer already supports barcodes, so the problem can be solved by setting useWithBarcode. A small method was extracted to override this cleanly. opw-2892608 closes odoo/odoo#96392 X-original-commit: 49df357a3b897bc06aa5978c4b77c4cfda29070c Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by: Masereel Pierre <pim@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%