123456789101112131415161718192021222324 |
- # -*- coding: utf-8 -*-
- from openerp.http import request as r
- def get_res_partner_baco():
- query = '''
- SELECT
- partner.id,
- partner.name,
- partner.ruc,
- partner.city
- FROM res_partner AS partner
- WHERE partner.customer = True AND partner.active = True
- '''
- r.cr.execute(query)
- return [
- {
- 'id': j[0],
- 'name': j[1],
- 'ruc': j[2],
- 'city': j[3],
- } for j in r.cr.fetchall()
- ]
|