# -*- coding: utf-8 -*- from openerp.http import request as r def get_ir_module_widget(): query = ''' SELECT name FROM ir_module_module WHERE state = 'installed' ''' r.cr.execute(query) return [ { 'name': j[0], } for j in r.cr.fetchall() ]