trytonpsk-hotel/city.py
2021-07-25 23:18:50 -05:00

15 lines
489 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
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__()