# -*- coding: utf-8 -*- from openerp.http import request as r def get_banks(): domain = [ ('active', '=', True) ] return [ { 'id': bank.id, 'name': bank.display_name } for bank in r.env['res.bank'].search(domain) ]