From 4f0ca6d9233cac33a4a0c2e9fcf0a5c2238b7eb1 Mon Sep 17 00:00:00 2001
From: Richard deMeester <richard@willowit.com.au>
Date: Wed, 21 Sep 2016 00:19:46 +1000
Subject: [PATCH] [FIX] base: res.config name_get fix (#13513)

name_get function needs to ensure that read passes the required
ids as a list, not a single value.  This is very important if
the method is inherited.
---
 openerp/addons/base/res/res_config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openerp/addons/base/res/res_config.py b/openerp/addons/base/res/res_config.py
index 958648275b9f..d05d77d5e3a3 100644
--- a/openerp/addons/base/res/res_config.py
+++ b/openerp/addons/base/res/res_config.py
@@ -627,7 +627,7 @@ class res_config_settings(osv.osv_memory, res_config_module_installation_mixin):
         action_ids = act_window.search(cr, uid, [('res_model', '=', self._name)], context=context)
         name = self._name
         if action_ids:
-            name = act_window.read(cr, uid, action_ids[0], ['name'], context=context)['name']
+            name = act_window.read(cr, uid, [action_ids[0]], ['name'], context=context)[0]['name']
         return [(record.id, name) for record in self.browse(cr, uid , ids, context=context)]
 
     def get_option_path(self, cr, uid, menu_xml_id, context=None):
-- 
GitLab