106193e35977085ddd2b21dbeed8d81a7f1b1aa2
Previously, the useService hook would call _protectMethod, which wraps async methods so that any call to them after the component has been destroyed throws an error, and any call that was started while the component was alive but returned after the component was destroyed would return a pending promise such that no more component code is executed. In doing so, it would for some reason bind all the methods to the service, this prevents some functionalities where a method would return a differently configured version of that same service, on which you can call the methods again (eg: orm.silent), as the modified service's methods would not be bound to that modified service. This commit fixes this issue by not binding the methods eagerly, and introduces a test for all these behaviours. closes odoo/odoo#96121 X-original-commit: 518a93a5487f62bd9b460412d4775cd0ac80a262 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Samuel Degueldre <sad@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%