[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.
This commit is contained in:
Richard deMeester
2016-09-20 16:19:46 +02:00
committed by DVE
parent c4784fc75b
commit 4f0ca6d923
+1 -1
View File
@@ -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):