diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-09-17 12:28:39 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-09-17 16:46:53 +0200 |
| commit | 19eacf7d23c9413de4430a3422b5ed74b37ef242 (patch) | |
| tree | fc96508d942cf2a31465545293f8856bb85838aa /addons/web/static/src/js/tools/test_menus.js | |
| parent | 110d37a31d579d4a221e0a0abc275bd6920a5159 (diff) | |
[IMP] web: new navbar in community
The navbar in community now looks more like the navbar in enterprise.
Here is a sum-up of the changes in community:
- The navbar in community is now in blue, instead of black.
- No more app list that almost fills the whole navbar: there is
now an "Apps Menu" in the left-most side of the navbar.
- No more sidebar for the menus inside an app: those menus are
now located in the middle part of the navbar.
The navbar in community does not support mobile (< 768px width),
but it should still somewhat usable on most mobile devices.
As for the website navbar, it has been unchanged and should still
support mobile layout.
Task-ID 1878649
Diffstat (limited to 'addons/web/static/src/js/tools/test_menus.js')
| -rw-r--r-- | addons/web/static/src/js/tools/test_menus.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/addons/web/static/src/js/tools/test_menus.js b/addons/web/static/src/js/tools/test_menus.js index 6a8c9d2118b..acfcde87878 100644 --- a/addons/web/static/src/js/tools/test_menus.js +++ b/addons/web/static/src/js/tools/test_menus.js @@ -61,7 +61,7 @@ $listOfAppMenuItems = $(".o_app, .o_menuitem") } else { console.log("Odoo flavor: Community") - $listOfAppMenuItems = $('#oe_main_menu_navbar a.oe_menu_leaf, #oe_main_menu_navbar a.oe_menu_toggler'); + $listOfAppMenuItems = $('#oe_main_menu_navbar a.oe_menu_leaf, #oe_main_menu_navbar a.o_app'); } console.log('Found ', $listOfAppMenuItems.length, 'apps to test'); @@ -94,12 +94,7 @@ testedApps.push(element.dataset.menuXmlid); return testMenuItem(element).then(function () { var $subMenuItems; - var isEnterprise = odoo.session_info.server_version_info[5] === 'e'; - if (isEnterprise) { - $subMenuItems = $('.o_menu_entry_lvl_1, .o_menu_entry_lvl_2, .o_menu_entry_lvl_3, .o_menu_entry_lvl_4'); - } else { - $subMenuItems = $('div.o_sub_menu_content .oe_menu_leaf'); - } + $subMenuItems = $('.o_menu_entry_lvl_1, .o_menu_entry_lvl_2, .o_menu_entry_lvl_3, .o_menu_entry_lvl_4'); var testMenuDef = $.when(); testMenuDef = chainDeferred($subMenuItems, testMenuDef, testMenuItem); return testMenuDef; |
