The current code in 'initAutoMoreMenu' doesn't work properly on navbar after the update on dropdown in [1]. Small tweaks were added in this commit to fix that. [1]: 84715436d87bb05b421bc9ccaacda67d07571690 task-2618929 X-original-commit: 29b9280c44534d2f210dbcea83e0049365949f48 Part-of: odoo/odoo#78959