trytonpsk-hotel/city.py
Camilo Sarmiento 20f569e9d4 migrate to git
2020-04-16 07:45:13 -05:00

16 lines
521 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, fields
__all__ = ['MigrationCity']
class MigrationCity(ModelSQL, ModelView):
"Migration City"
__name__ = "hotel.migration_city"
_rec_name = 'name'
name = fields.Char('Name', required=True)
code = fields.Char('Code')
@classmethod
def __setup__(cls):
super(MigrationCity, cls).__setup__()