Odoo v10.0
Is it possible to add custom menu item on left sidebar in top-level "Settings" section?
For example here, in "Settings" section in navbar I have "Dashboard", "Users" and others. I have my custom module (addon) that's installed in system. I want to control some settings of my addon from UI as admin.
Ideally, such as UI should be in "Settings -> on left-side bar MyAddon -> and its sub-items". Otherwise, it should be in top-level navbar as the separate section.
Please advise where I can see (link to code) such as example.
Thanks
CC #Emipro Technologies Pvt. Ltd
if you want to put your menu under Settings -> Users
use parent id of any menu to put your menu under that menu.
<menuitem id="your_ui_menu_id" name="UI" parent="base.menu_administration" />
Related
I want to add a new module to the top bar menu at openerp.
I don't know what exactly the name is, but it placed at the top of the openerp (next to the people who login). By default, the top bar menu contains Messaging, Sales, Project, Knowledge, Reporting, Settings.
I want to add my new module to that menu bar. Can I? And how can?
Yoas Loing
You have to do nothing to define new menu on top, just define your menu item and do not give any parent of this menu, and define at least on child below this menu,
Hope this help
I created a new custom module Customer.
It is currently shown as a shortcut in ALL sections on the main page.
I want users to be able to select Customer when they mouse over the Sales shortcut (to show Customer next to Accounts, Contacts, Opportunities).
How do I add it?
Thank you
You can add modules to different menu groups from the page Administration > Configure Module Menu Filters. It will be in the section Developer Tools on the Administration page.
I use an application called Afloat that adds a few buttons to the "Window" menu of every application that uses windows. It adds the Afloat icon and options like "Keep Afloat" which will leave the active window as the window that stays the furthest forward even if the user clicks a different window. I would like to add an item to the "Edit" menu and to all contextual menus on a text editor. I can't find how to do this in the documentation.
Quote by Apple:
The CFPlugIn provides a standard architecture for application extensions. A contextual menu plug-in, which is CFPlugIn bundle installed in a Library/Contextual Menu Items directory at the appropriate level of the system, enables applications and other forms of software to extend the list of commands found on contextual menus such as the Finder’s.
Alternatively, you can use Services to integrate with other applications.
Within the project explorer in eclipse, the context menu bars "Debug as" and "Run as" appear allowing to launch in debug/run mode.
I have created a new view (Replacement to Project Explorer view) and these context menu bars don't appear.
I couldn't find what I should add to the plugin.xml in order to add these context menu bars also to my new view.
Could anyone help ?
Those menu items are extracted with Common Navigator Framework. Consider using CommonViewer for them to reappear.
I'm building a plugin, and adding an entry to the context menu (right-click on a folder in the project tree).
So far it works, following this tutorial:
http://www.eclipse.org/articles/article.php?file=Article-JFaceWizards/index.html
The problem is that it's adding my entry in the root of the context menu. Since my entry refers to a "New XXX" wizard, I want it to go to the "New" submenu.
It seems like I would have to set the correct locationURI or menuPath in my plugin.xml. However I can't find the locationURI or menuPath corresponding to that submenu. How can I find that?
The new contributions are menu ID based, not menu path based. So it should be something like:
<menuContribution
locationURI="menu:file?after=additions" />
See this SO answer for an example of locationUri.
See Menu Extension for more. The exact id is either:
found in the existing plugin.xml from the menu or
determined with plugin Spy
See "How to add items in popup menu?" (from justinmreina) for more on adding an entry to a menu.
If you've created a plugin for a 'New XXX' wizard, you can add it inside the 'New' menu that you see when you right-click inside the Navigator by customizing the perspective.
Go to Window -> Customize Perspective and click on the Shortcuts tab. You should see 'New XXX'. Select it and you're good to go.