[IMP] web: FavoriteMenu: move 'Save Current Search'

Move it above the separator.

Part of task 2234547

Co-authored-by: Mohammed Shekha <msh@odoo.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
This commit is contained in:
pka-odoo
2020-05-04 12:05:38 +00:00
committed by Aaron Bohy
co-authored by Mohammed Shekha Aaron Bohy
parent 47a1ae580f
commit 93c01a231a
2 changed files with 2 additions and 0 deletions
@@ -146,6 +146,7 @@ odoo.define('web.CustomFavoriteItem', function (require) {
CustomFavoriteItem.props = {};
CustomFavoriteItem.template = 'web.CustomFavoriteItem';
CustomFavoriteItem.groupNumber = 3; // have 'Save Current Search' in its own group
FavoriteMenu.registry.add('favorite-generator-menu', CustomFavoriteItem, 0);
@@ -39,6 +39,7 @@ odoo.define('web.FavoriteMenu', function (require) {
if (Component.shouldBeDisplayed(this.env)) {
menus.push({
key: Component.name,
groupNumber: Component.groupNumber,
Component,
});
}