Skip to content
Snippets Groups Projects
Commit 7d23491b authored by Louis Wicket (wil)'s avatar Louis Wicket (wil)
Browse files

[IMP] mail, *: refactor patch API to look like model definitions


Model patches are now defined using the `registerPatch` function. This
function takes an object as argument which keys match those of a model
definition.

Benefits:
+ More consistent shape between model definitions and patch definitions
+ No need to import one function to each type of patch
+ No need to repeat the model name for each type of patch
+ No need to import the original definition

Task-2998282.

* = calendar, crm, hr, im_livechat, note, rating, sms, snailmail,
    website_livechat, website_slides

closes odoo/odoo#101282

Related: odoo/enterprise#31866
Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
parent b06ce21e
Branches
Tags
No related merge requests found
Showing
with 542 additions and 534 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment