Skip to content

[18.0][IMP] web_menu_reorder#3495

Open
mathben wants to merge 1 commit intoOCA:18.0from
TechnoLibre:18.0_imp_web_menu_reorder
Open

[18.0][IMP] web_menu_reorder#3495
mathben wants to merge 1 commit intoOCA:18.0from
TechnoLibre:18.0_imp_web_menu_reorder

Conversation

@mathben
Copy link
Copy Markdown

@mathben mathben commented Mar 27, 2026

Reorder top-level menus alphabetically or by custom label list or by default (sequence)

@mathben mathben force-pushed the 18.0_imp_web_menu_reorder branch from b87563c to 42f8936 Compare April 2, 2026 05:46
@mathben mathben changed the title [IMP] web_menu_reorder [18.0][IMP] web_menu_reorder Apr 2, 2026
Copy link
Copy Markdown
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your contribution.

Comment on lines +53 to +67
def get_values(self):
res = super().get_values()
res["menu_order_labels"] = (
self.env["ir.config_parameter"]
.sudo()
.get_param("menu_reorder_settings.menu_order_labels", default="")
)
return res

def set_values(self):
super().set_values()
self.env["ir.config_parameter"].sudo().set_param(
"menu_reorder_settings.menu_order_labels",
self.menu_order_labels or "",
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could remove this section, and just use the nativ configuration parameter ? don't you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants