Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to get id of menu sale/setting/product openerp v7

on 10/9/14, 5:52 AM 1,182 views


How to get id of menu sale/setting/product openerp v7


the id of menu sale/setting/product is product.prod_config_main

on 10/9/14, 6:18 AM
Piyush Suva
On 10/9/14, 6:45 AM

if you want to get id as integer of  sale/setting/product through python code, 

Then you can use below code:

 rec = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'product', 'prod_config_main')

print "rec...",rec

menu_id = rec[1]

print "menu_id..",menu_id

thanks for your response but I search just the id of menu sale /setting/products and i resolve the problem (id of this menu is product.prod_config_main) thanks

on 10/9/14, 8:57 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 10/9/14, 5:52 AM
Seen: 1182 times
Last updated: 3/16/15, 8:10 AM