It is currently Mon May 21, 2012 7:16 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: add specific menu-item to a standard menu possible?
PostPosted: Tue Jul 12, 2011 11:27 am 
Offline

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
 Profile  
 
 Post subject: Re: add specific menu-item to a standard menu possible?
PostPosted: Tue Jul 12, 2011 11:36 am 
Offline

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
 Profile  
 
 Post subject: Re: add specific menu-item to a standard menu possible?
PostPosted: Tue Jul 12, 2011 11:44 am 
Offline

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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


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

Search for:

Protected by Anti-Spam ACP