ded278b9c20ddf7b9637d53d9b3f519947fb40ff
While HttpCase did set `web.base.url` before starting a browser, in the non-browser test cases (or cases which would mix browser and non-browser) it would not do so. This is an issue when installing the database with one http-port and running tests with an other e.g. after duplicating the database (or even not duplicating it) in order to run multiple test instances concurrently, which requires using different http ports. Tests would then see the base url generated during installation, embedding the port used at installation, and would break weirdly (at best exploding due to not finding any server to bind to, and at worst making request on the wrong instance entirely). Simply updating the base url during setup seems to fix most of the tests. Notes: * Some tests (e.g. survey) don't flush() their create/update before calling `start_tour` or `browser_js`, the implicit flush because of the ICP handled the issue. Perform an explicit flush of base (similar to `url_open`) to ensure they keep working correctly. * `url_join` should handle absolute URIs correctly, it does imply slightly different semantics in case the `base_url` has a non-empty path, but that seems like a very limited risk (and possibly convenient to boot). * `payment` needed a fix because the vagaries of the MRO led to the extra parameter internally used by the thing to be passed to `HttpCase`'s `setUpClass`, which would not expect it. closes odoo/odoo#72645 Signed-off-by: Xavier Morel (xmo) <xmo@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%