123456789101112131415 |
- # -*- coding: utf-8 -*-
- from openerp.http import request as r
- _MODEL = 'res.users'
- def get_res_users():
- return [
- {
- 'id': user.id,
- 'company_id': user.company_id.id,
- 'store_id': user.store_id.id,
- 'name': user.partner_id.name,
- } for user in r.env[_MODEL].search([])
- ]
|