2022-03-16 00:19:31 +01: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.pool import PoolMeta
|
|
|
|
from trytond.model import fields, ModelView, ModelSQL
|
2022-03-27 00:13:22 +01:00
|
|
|
from trytond.transaction import Transaction
|
2022-08-29 02:02:36 +02:00
|
|
|
from trytond.modules.dash.dash import DashAppBase
|
2022-03-16 00:19:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
class DashApp(metaclass=PoolMeta):
|
|
|
|
__name__ = 'dash.app'
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def _get_origin(cls):
|
|
|
|
origins = super(DashApp, cls)._get_origin()
|
2022-08-29 02:02:36 +02:00
|
|
|
origins.extend([
|
|
|
|
'dash.app.hotel_planner',
|
|
|
|
'dash.app.housekeeping',
|
2022-08-31 04:21:22 +02:00
|
|
|
'dash.app.web_checkin',
|
2022-08-29 02:02:36 +02:00
|
|
|
])
|
2022-03-16 00:19:31 +01:00
|
|
|
return origins
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def get_selection(cls):
|
|
|
|
options = super(DashApp, cls).get_selection()
|
|
|
|
options.extend([
|
2022-03-30 20:22:01 +02:00
|
|
|
('hotel_planner', 'Planner'),
|
2022-08-29 02:02:36 +02:00
|
|
|
('housekeeping', 'Housekeeping'),
|
2022-08-31 04:21:22 +02:00
|
|
|
('web_checkin', 'Housekeeping'),
|
2022-03-16 00:19:31 +01:00
|
|
|
])
|
|
|
|
return options
|
|
|
|
|
|
|
|
|
2022-08-29 02:02:36 +02:00
|
|
|
class AppHotelPlanner(DashAppBase):
|
2022-03-16 00:19:31 +01:00
|
|
|
'App Hotel Planner'
|
|
|
|
__name__ = 'dash.app.hotel_planner'
|
|
|
|
|
|
|
|
|
2022-08-29 02:02:36 +02:00
|
|
|
class AppHousekeeping(DashAppBase):
|
|
|
|
'App Housekeeping'
|
|
|
|
__name__ = 'dash.app.housekeeping'
|
2022-08-31 04:21:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
class AppWebCheckIn(DashAppBase):
|
|
|
|
'App Web Check-In'
|
|
|
|
__name__ = 'dash.app.web_checkin'
|