mirror of
https://bitbucket.org/presik/trytonpsk-hotel.git
synced 2023-12-14 07:52:52 +01:00
54 lines
1.4 KiB
Python
54 lines
1.4 KiB
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.pool import PoolMeta
|
|
from trytond.modules.dash.dash import DashAppBase
|
|
|
|
# cada clase que registro la debo declarar en _init,py
|
|
class DashApp(metaclass=PoolMeta):
|
|
__name__ = "dash.app"
|
|
|
|
@classmethod
|
|
def _get_origin(cls):
|
|
origins = super(DashApp, cls)._get_origin()
|
|
origins.extend(
|
|
[
|
|
"dash.app.hotel_planner",
|
|
"dash.app.housekeeping",
|
|
"dash.app.web_checkin",
|
|
"dash.app.booking",
|
|
]
|
|
)
|
|
return origins
|
|
|
|
@classmethod
|
|
def get_selection(cls):
|
|
options = super(DashApp, cls).get_selection()
|
|
options.extend(
|
|
[
|
|
("hotel_planner", "Planner"),
|
|
("housekeeping", "Housekeeping"),
|
|
("web_checkin", "Web Checkin"),
|
|
("booking", "Booking"),
|
|
]
|
|
)
|
|
return options
|
|
|
|
|
|
class AppHotelPlanner(DashAppBase):
|
|
"App Hotel Planner"
|
|
__name__ = "dash.app.hotel_planner"
|
|
|
|
# sdhsad
|
|
class AppHousekeeping(DashAppBase):
|
|
"App Housekeeping"
|
|
__name__ = "dash.app.housekeeping"
|
|
|
|
|
|
class AppWebCheckIn(DashAppBase):
|
|
"App Web Check-In"
|
|
__name__ = "dash.app.web_checkin"
|
|
|
|
class AppBooking(DashAppBase):
|
|
"App Booking"
|
|
__name__ = "dash.app.booking"
|