diff options
| author | Michael Mattiello (mcm) <mcm@odoo.com> | 2020-04-15 12:09:56 +0000 |
|---|---|---|
| committer | Michael Mattiello (mcm) <mcm@odoo.com> | 2020-04-16 07:19:55 +0000 |
| commit | f0aa343fe2d5680b27895e13b9962b3c4a9b9881 (patch) | |
| tree | 1430c2eeb45df9c3c3680b971ff0fdccfd8e63a7 /addons/web/static/src/js/control_panel/control_panel.js | |
| parent | dcf9a4c38da5d50a6e597d3d68c3d46fdef61df5 (diff) | |
[REF] web,mail: use patchMixin and patch instead of utils.patch
This commit replaces the use of utils.patch by the new class patcher and
makes the renderers that are converted to owl patchable.
closes odoo/odoo#47700
Related: odoo/enterprise#9551
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/control_panel/control_panel.js')
| -rw-r--r-- | addons/web/static/src/js/control_panel/control_panel.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/control_panel/control_panel.js b/addons/web/static/src/js/control_panel/control_panel.js index d7105806de4..fee26c3779d 100644 --- a/addons/web/static/src/js/control_panel/control_panel.js +++ b/addons/web/static/src/js/control_panel/control_panel.js @@ -6,6 +6,7 @@ odoo.define('web.ControlPanel', function (require) { const FavoriteMenu = require('web.FavoriteMenu'); const FilterMenu = require('web.FilterMenu'); const GroupByMenu = require('web.GroupByMenu'); + const patchMixin = require('web.patchMixin'); const Pager = require('web.Pager'); const SearchBar = require('web.SearchBar'); const TimeRangeMenu = require('web.TimeRangeMenu'); @@ -221,5 +222,5 @@ odoo.define('web.ControlPanel', function (require) { ControlPanel.template = 'web.ControlPanel'; - return ControlPanel; + return patchMixin(ControlPanel); }); |
