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"
|
2021-03-27 15:35:46 +01:00
|
|
|
_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__()
|