[FIX] ir.actions.server: remove stupid restriction on model names

bzr revid: chs@openerp.com-20140107172010-3sqo5yqrxz9523hy
This commit is contained in:
Christophe Simonis 2014-01-07 18:20:10 +01:00
parent aefcacf1f3
commit ee53f9da60
1 changed files with 2 additions and 2 deletions

View 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] + [('','')]