You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
# -*- coding: utf-8 -*-
|
|
##############################################################################
|
|
#
|
|
# Cybrosys Technologies Pvt. Ltd.
|
|
# Copyright (C) 2008-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
|
|
# Author: Nilmar Shereef(<http://www.cybrosys.com>)
|
|
# you can modify it under the terms of the GNU LESSER
|
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
|
|
#
|
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
|
|
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
|
|
# If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
##############################################################################
|
|
|
|
from openerp import models, fields
|
|
|
|
|
|
class CabLocation(models.Model):
|
|
_name = 'cab.location'
|
|
|
|
name = fields.Char(string='City', required=True)
|
|
cab_zip = fields.Char(string='ZIP')
|
|
cab_code = fields.Char(string='City Code', size=64, help="The official code for the city")
|
|
state_id = fields.Many2one('res.country.state', string='State', required=True)
|
|
country_id = fields.Many2one('res.country', string='Country', required=True)
|
|
|