7416acc111793ac1f7fd0dc653bb05cf7af28ebe
Previously, any call to `IapAccount.get` during testing would lead to the creation of a new `iap.account` record as this was done in a separate transaction which is commited. As we don't want any database modification resulting from a test execution, we will now check if we're in test mode or not. During testing, a new account will be created in the current transaction so that it can be properly rollbacked at the end of the tests. This commit also modifies how the `iap_jsonrpc` function is disabled during testing as the old implementation used some pretty obscure manipulations of the `BaseCase` class. The tests of the `website` module needed to be updated to take those changes into account. closes odoo/odoo#122663 Signed-off-by: Florian Daloze (fda) <fda@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%