1234567891011121314151617 |
- # -*- coding: utf-8 -*-
- from openerp.http import request
- _MODEL = 'stock.warehouse'
- def get_warehouses():
- return [
- {
- 'id': w.id,
- 'name': w.display_name,
- 'locationStock': {
- 'id': w.lot_stock_id.id,
- 'name': w.lot_stock_id.display_name
- }
- } for w in request.env.user.store_id.warehouse_ids
- ]
|