c4b7d65e2efa737fa636c1e5014c6913b118fa44
In odoo/odoo#120893, the mail team changed their test utils so that they would always start all services. This can cause issues because services do not have any built-in destruction/cleanup mechanism, as in a production application they are only supposed to be started once. Some services add event listeners on global objects, in particular, the tour service adds an event listener on the tour registry which is global. If this event listener is not cleaned up, every time the tour service is started, a reference to the environment in which this tour service is being started is leaked. Since the environment contains all started services, it is typically a pretty heavy object, especially since in this context, all services are started instead of a select subset. This commit fixes that by patching the EventBus class to automatically remove event listeners that were added on an event bus after the test, in a similar fashion to what we do for some global objects like window or the document's body. closes odoo/odoo#130373 Signed-off-by: Aaron Bohy (aab) <aab@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%