res_bank.py 281 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. from openerp.http import request as r
  3. def get_banks():
  4. domain = [
  5. ('active', '=', True)
  6. ]
  7. return [
  8. {
  9. 'id': bank.id,
  10. 'name': bank.display_name
  11. } for bank in r.env['res.bank'].search(domain)
  12. ]