Odoo Help

Welcome!

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.

0

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

By
oussama
on 10/9/14, 5:52 AM 1,312 views

Hi

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

thanks

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

oussama
on 10/9/14, 6:18 AM
2
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

oussama
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)

Stats

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