Odoo Help


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

on 10/9/14, 5:52 AM 1,420 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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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