diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 4f12a915a7c..2620e4ed40f 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -859,6 +859,10 @@ instance.web.Menu = instance.web.Widget.extend({ $clicked_menu.parent().addClass('active'); } } + // add a tooltip to cropped menu items + this.$secondary_menus.find('.oe_secondary_submenu li a span').each(function() { + $(this).tooltip(this.scrollWidth > this.clientWidth ? {title: $(this).text().trim(), placement: 'auto right'} :'destroy'); + }); }, /** * Call open_menu with the first menu_item matching an action_id