I'm install my custom module but module link in menu is not visible!
I'm trying to change sequences but again in not visible, in apps/modul name stay:
Created Menus
MY MENU
Where is problem here?
<menuitem name="MY MENU" id="my_menu_1" action="action_my_menu_form" sequence="55"/>
In Odoo Menu-Item parent-id is required.
If you not give parent menu item then odoo will consider menu item as Parent Menu item.
You have done same thing.create menu item without parent-id,so odoo will consider as parent menu.
Ex:
Sales Is parent Menu. ( In base module)
<menuitem name="Sales"
id="menu_base_partner"
groups="base.group_sale_salesman"
sequence="20"/>
Product is Child Menu.
<menuitem id="menu_product" name="Products" parent="base.menu_base_partner" action="product_action_window" sequence="9"/>
Parent Menu item is base.menu_base_partner.
Child Menu item is menu_product.
If you create only Parent menu item then Child menu item will not visible in the system.
When the menu is not shown (if any one know other cases put it in comment ) sorry for my english:
The menu has no child menu and it has not an action
the menu has childrens menus but also the children have no action
menu or childs menus have action but you are not allowed by group security.
(ir.model.access)you have acces to menu but you don't have acces to read record from the model related to the action. super user (administrator) can acces any record.
or you didn't upgrade you module correctly the menu is not loaded at all for this problem see in developper mode if the menu is loaded to the database.
Related
I know that an application template comes with default 'Main Menu' items already existing and attached.
But if this default 'Main Menu' structure was deleted then how to re-add main menu items to the application? Simply adding fresh menu items tree to XIB and connecting it to the application's window 'menu' outlet using the visual connector does not make these menu items to appear in the application main menu - application menu bar still stays empty.
What is the right way to add menu to application?
Is it possible hide button in odoo ir.model.access.csv security file.
For example on form I have two button (Button 1 and Button 2) admin can see both button, user only Button 1.
Any simple solution?
If these are buttons on a form view you can show Button 2 only for certain user groups for by adding a groups attribute on it, eg.:
<button string="Button 2" groups="base.group_system" name="..." type="..."/>
This will only show Button 2 to users belonging to the Administration -> Settings group.
We are exploring the new menu editor that exists now in the channel manager of hippo version 7.9.1. We found the documentation at [1]. But we still have a question. A menu item can have an internal or external link, or have destination "none". We see that a hst:sitemenuitem is created with the property hst:repobased = false. What is the purpose of this destination type?
http://www.onehippo.org/library/concepts/component-development/enable-edit-menu-button-that-opens-menu-editor.html
The property hst:repobased is 'false' by default.
Menu items of type 'none' won't have a backing link. Such items can be useful in designs where some items are only used to visually group sub-items. For example, a site menu that is rendered as dropdowns (possibly nested) that expand on hover. The top-level items could have no backing page, but only serve as area that trigger the expansion of the sub-menu items.
In openerp6.1 I am working on warehouse(stock)
I am trying to customize stock and create new warehouse_management module now I want to hide original warehouse menu,sub menu and put my own WMS menu internally I use many functionality of stock, so if I delete menu item i can't access existing functionality
I just want to hide warehouse menu and its sub menu
Requirement is when I am install my wms module it automatically hide warehouse menu
if you not want to delete menu then you can done one thing, create a new group and overwrite the same menu again in your module
<menuitem name="Project" id="base.menu_main_pm" groups="group_new_hide" sequence="40"/>
So until you give this new group any user the menu remain hidden
Hope this help
MY application has a context menu that appears when the user right-clicks a form. The context menu is generated on each click since the items depend on various application variables.
Each context menu contains a number of items and several DropDown sub-menus.
As the context menu is created, I can set items on the primary menu as checked as follows:
MenuItemX.Checked = True
However, I cannot find a way to make items in the Dropdown menu checked. I can create these items OK, but the line of code above does not allow me to set them as checked.
Is it possible to have items within a Dropdown sub-menu checked, and to set this property at run-time?
Can anyone provide an example of how to do this?