This question has been flagged
1 Reply
3350 Views

Hi

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

thanks

Avatar
Discard
Author

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

Best Answer

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

Avatar
Discard
Author

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