5a870462e022fbbead650add3cf441f00dbd0db8
_patch_method and _revert_method
There is only one legitimate usage of `_patch_method` (base_automation) and none of `_revert_method`. The other uses are in tests and they are all wrong: if the test crashes between the `_patch_method` and the `_revert_method`, the method will not be reverted. For the only proper usage of `_patch_method`, move the code to this place. Correct tests using `_patch_method`/`_revert_method` by calling the `patch` method of `BaseCase`. Also, remove the `api.returns` from the `create` method of `BaseModel` as it is useless and confusing. In fact, we never use it because we have a special treatment at the RPC level for the `create` method (see `_call_kw_model_create`). closes odoo/odoo#110370 Signed-off-by: Raphael Collet <rco@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%