From fd530ec981ef361a0e7f0fc403ef47aec972fefb Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Tue, 12 Feb 2013 17:53:18 +0100 Subject: [PATCH] [FIX] doc: the id of an action is a long, not an int bzr revid: abo@openerp.com-20130212165318-joldqhz0apilwmsp --- openerp/addons/base/res/res_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openerp/addons/base/res/res_config.py b/openerp/addons/base/res/res_config.py index 826c3d2b726..2dae5c7f865 100644 --- a/openerp/addons/base/res/res_config.py +++ b/openerp/addons/base/res/res_config.py @@ -594,7 +594,8 @@ class res_config_settings(osv.osv_memory): def get_option_path(self, cr, uid, menu_xml_id, context=None): """ - Fetch the path to a specified configuration view. + Fetch the path to a specified configuration view and the action id + to access it. :param string menu_xml_id: the xml id of the menuitem where the view is located, structured as follows: module_name.menuitem_xml_id @@ -602,7 +603,7 @@ class res_config_settings(osv.osv_memory): :return tuple: - t[0]: string: full path to the menuitem (e.g.: "Settings/Configuration/Sales") - - t[1]: int: id of the menuitem's action + - t[1]: long: id of the menuitem's action """ module_name, menu_xml_id = menu_xml_id.split('.') dummy, menu_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, module_name, menu_xml_id)