View unanswered posts | View active topics
|
Page 1 of 1
|
[ 3 posts ] |
|
| Author |
Message |
|
ita
|
Post subject: add specific menu-item to a standard menu possible? Posted: Tue Jul 12, 2011 11:27 am |
|
Joined: Wed Jun 08, 2011 10:58 am Posts: 6
|
|
I made a small module sp_partner with some specific fields for partners and contacts I want to add a menu item to upload functions in the existing menu structure: Sales/Configuration/Address Book : there I want to add "Contact functions". But that doesn't work. When I make a specific menu-tree (i.e. Sales addon/Configuration:Address Book) it works, but it's not what i want. Is it possible?
i tried : <menuitem action="action_function_form" id="menu_function_form" parent="menu_config_address_book" name="Contact functions" sequence="10" />
But then i get following error: "No references to sp_partner.menu_config_address_book" so it seems it looks only in my own module to find the parent menu
I tried to change de reference of the parent menu in res.menu_config_address_book but that gives the same error How should i reference to the parent menu?
|
|
| Top |
|
 |
|
gdaddy
|
Post subject: Re: add specific menu-item to a standard menu possible? Posted: Tue Jul 12, 2011 11:36 am |
|
Joined: Wed Jan 27, 2010 6:21 pm Posts: 797 Location: Auckland, NZ
|
|
First your module needs to depend on the parent module in __openerp.py__ I think it is base in this case so it probably already does.
After that you just need to find the menu reference in the module you want which I think for address book is in base so if the rest of your parent code is correct
base.menu_config_address_book is where you want not res
_________________ Graeme
|
|
| Top |
|
 |
|
ita
|
Post subject: Re: add specific menu-item to a standard menu possible? Posted: Tue Jul 12, 2011 11:44 am |
|
Joined: Wed Jun 08, 2011 10:58 am Posts: 6
|
|
you're right, it must be base.menu_config_address_book. now it works. tks!!
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 3 posts ] |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|