web
web copied to clipboard
[ADD] New module web_merge_notebook_tab
Description
This module extend the Odoo Community Edition web module to improve display of Form views that contains notebooks.
Odoo is very modular, that is great, but for some Forms, Odoo designs the view with a lot of tabs in a notebook, one per functional topic.
If many modules are installed, it generates a lot of tabs. Consequently:
- it force users to click a lot of time in all the tabs, to configure all the data.
- it is not possible for a user to see quickly, if an item is correctly configured.
It is specially problematic for product or partner form views.
This module allows to 'merge' many tabs into a single tab, to avoid such UX troubles.
Demo exemple with the form view of the res.groups model:
Without the module
With the module
Configure
-
Go to "Settings > Technical > User Interface > Merge Notebook tab Settings"
-
Create a new setting:
- Select the view you want to change
- Set the description of the tab, that will be displayed to the user. (
stringparameter) - Set the name of the tab, that will be used technically. (
nameparameter) - set the names of the tabs you want to merge, as a python list.
Idea : add sequence parameter when we configure a merge notebook
could you elaborate ?
This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
Idea : add sequence parameter when we configure a merge notebook
could you elaborate ?
When I tested the module, I merge three notebooks and the notebook arrive on last position. I thought to myself: how cool would it be to be able to choose the position of this new tab? :) Butt in fact, the order of the tabs are not managed with sequences, so...
I thought to myself: how cool would it be to be able to choose the position of this new tab? :)
I get it ! Thanks. Indeed. For the time being, it "append" the new tab in notebook, as the last element, using https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.append.
if we add some field in the setting, like tab_name_append_after = fied.char() , we could replace the call of append by a call of https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.insert to insert the new tab after the defined tab.
I'll give it a try in the next day. if it's not easy, i'll add a text in the roadmap section.