Technical mailing list archives

technical@mail.odoo.com

Avatar

Re: Change menu id?

by
Elico Solutions Pte Ltd, dominique kon sun tack
- 26 أبريل, 2019 11:46:10
Possible solution: "hide" the old menu
Move the old menu in a "hidden" location, for example under the "settings>technical"
Move the new menu item at the desired location, and you should be good.

Cheers


On Fri, 26 Apr 2019 at 22:56, Dominic Pain <dominic@flowmo.co> wrote:
Hi,

I've created a new sub menu in Sales/Sales called Report Templates. This 
is (and does) link to a list of templates and from there to a wysiwig 
edit (fields.Html) to allow customers to edit templates.

I've also created a new menu called "Report Templates Management", with 
a dropdown which allows users to toggle between Templates and Notes.

When the user clicks on Sales/Sales/Report Templates, I want the menu to 
change from menu_id=97 (Sales/Sales) to menu_id=481 (Report Templates 
Management) - how would I go about this?

Current code in the gist, screenshots attached numerically demonstrate 
what I'm trying to achieve.

https://gist.github.com/WeeDom/f13d2103aef142c8aa521f59e92ac435

Thanks in advance!

Dominic

_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

Reference