[FIX] ir.actions.server: remove stupid restriction on model names
authorChristophe Simonis <chs@openerp.com>
Tue, 7 Jan 2014 17:20:10 +0000 (18:20 +0100)
committerChristophe Simonis <chs@openerp.com>
Tue, 7 Jan 2014 17:20:10 +0000 (18:20 +0100)
bzr revid: chs@openerp.com-20140107172010-3sqo5yqrxz9523hy

openerp/addons/base/ir/ir_actions.py

index 97996a1..65cb88a 100644 (file)
@@ -2,7 +2,7 @@
 ##############################################################################
 #
 #    OpenERP, Open Source Management Solution
-#    Copyright (C) 2004-2011 OpenERP S.A. <http://www.openerp.com>
+#    Copyright (C) 2004-2014 OpenERP S.A. <http://www.openerp.com>
 #
 #    This program is free software: you can redistribute it and/or modify
 #    it under the terms of the GNU Affero General Public License as
@@ -411,7 +411,7 @@ class actions_server(osv.osv):
 
     def _select_objects(self, cr, uid, context=None):
         model_pool = self.pool.get('ir.model')
-        ids = model_pool.search(cr, uid, [('name','not ilike','.')])
+        ids = model_pool.search(cr, uid, [], limit=None)
         res = model_pool.read(cr, uid, ids, ['model', 'name'])
         return [(r['model'], r['name']) for r in res] +  [('','')]