ir_module_module.py 303 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. from openerp.http import request as r
  3. def get_ir_module_widget():
  4. query = '''
  5. SELECT name
  6. FROM ir_module_module
  7. WHERE state = 'installed'
  8. '''
  9. r.cr.execute(query)
  10. return [
  11. {
  12. 'name': j[0],
  13. } for j in r.cr.fetchall()
  14. ]