Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4857 Widoki

I was asked to change the behaviour of EE's top smart button's bar so that it wouldn't show the "drop down" menu but rather display buttons in more than one line if necessary.


I actually got to find the origin of the code (http://bloopark.de/en_US/blog/the-bloopark-times-english-2/post/dynamic-full-width-nav-smart-buttons-246), but I can't find where it is in Odoo EE.


Has anyone done such a thing? The idea is to make EE "forget" the drop down menu.

Awatar
Odrzuć
Najlepsza odpowiedź

You should make a module that overides the file here  found in my EE v11:
addons/web/static/src/js/views/form/form_renderer.js

Just for testing purpose you can edit the file and change the number of Smart Buttons you want, here i changed 7 to 10 buttons displayed:

 // Get the unfolded buttons according to window size
        var nb_buttons = [2, 4, 6, 10][config.device.size_class];
        var unfolded_buttons = visible_buttons.slice(0, nb_buttons).concat(invisible_buttons);
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 20
16200
1
sie 16
8185
2
maj 21
6670
1
sty 18
8576
1
kwi 23
3890