1
# -*- coding: utf-8 -*-
2
##############################################################################
4
# wms module for OpenERP, This module allows to manage crossdocking in warehouses
5
# Copyright (C) 2011 SYLEAM Info Services (<http://www.Syleam.fr/>)
6
# Sylvain Garancher <sylvain.garancher@syleam.fr>
7
# Sebastien LANGE <sebastien.lange@syleam.fr>
9
# This file is a part of wms
11
# wms is free software: you can redistribute it and/or modify
12
# it under the terms of the GNU General Public License as published by
13
# the Free Software Foundation, either version 3 of the License, or
14
# (at your option) any later version.
16
# wms is distributed in the hope that it will be useful,
17
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
# GNU General Public License for more details.
21
# You should have received a copy of the GNU General Public License
22
# along with this program. If not, see <http://www.gnu.org/licenses/>.
24
##############################################################################
26
from openerp.osv import osv
27
from openerp.osv import fields
30
class stock_location_category(osv.osv):
31
_name = 'stock.location.category'
32
_description = 'Category of stock location'
35
'name': fields.char('Name', size=64, required=True, help='Name of the category of stock location'),
36
'code': fields.char('Code', size=64, required=True, help='Code of the category of stock location'),
37
'active': fields.boolean('Active', help='This field allows to hide the category without removing it'),
40
stock_location_category()
43
class stock_location(osv.osv):
44
_inherit = 'stock.location'
47
'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', help='Warehouse where is located this location'),
48
'categ_id': fields.many2one('stock.location.category', 'Category', help='Category of this location'),
53
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: