429fd96c5c1ddf454c2e2cade450bd2b4aefe489
Steps to reproduce: 1- install ecommerce - payment_stripe 2- configure stripe testing credentials 3- edit main currency to have more decimal places (assume 4 instead of 2 for USD) 4- add product p to cart (assume p.price = 100 USD) 5- checkout with stripe 6- the price is 10,000 USD instead of 100 USD Bug: Stripe expects the amount in the smallest unit possible for the currency. https://stripe.com/docs/currencies#zero-decimal This differs from a currency to another according to https://en.wikipedia.org/wiki/ISO_4217#Minor_unit_fractions `to_minor_currency_units` uses the decimal places of the currency by default which will produce wrong values Fix: use currency exponent table built from https://en.wikipedia.org/wiki/ISO_4217#Minor_unit_fractions default behavior (for a currency that is not available) is not changed OPW-3058173 closes odoo/odoo#106936 X-original-commit: 703ed2b4e162ff0a7b621e3cf8b92b8eb7fddff8 Signed-off-by: Antoine Vandevenne (anv) <anv@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%