trytonpsk-hotel/city.py

16 lines
489 B
Python
Raw Normal View History

2020-04-16 14:45:13 +02:00
# 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
2021-07-26 06:18:50 +02:00
2020-04-16 14:45:13 +02:00
class MigrationCity(ModelSQL, ModelView):
"Migration City"
__name__ = "hotel.migration_city"
_rec_name = 'name'
2020-04-16 14:45:13 +02:00
name = fields.Char('Name', required=True)
code = fields.Char('Code')
@classmethod
def __setup__(cls):
super(MigrationCity, cls).__setup__()