2023-07-14 21:27:10 +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.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.rental",
|
2023-08-17 17:45:27 +02:00
|
|
|
"dash.app.rentalb",
|
|
|
|
"dash.app.web_booking_rental",
|
2023-07-14 21:27:10 +02:00
|
|
|
]
|
|
|
|
)
|
|
|
|
return origins
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def get_selection(cls):
|
|
|
|
options = super(DashApp, cls).get_selection()
|
|
|
|
options.extend(
|
|
|
|
[
|
|
|
|
("rental", "Rental"),
|
2023-08-17 17:45:27 +02:00
|
|
|
("rentalb", "Rentalb"),
|
|
|
|
("web_booking_rental", "Web Booking Rental"),
|
2023-07-14 21:27:10 +02:00
|
|
|
]
|
|
|
|
)
|
|
|
|
return options
|
|
|
|
|
|
|
|
|
|
|
|
class AppRental(DashAppBase):
|
|
|
|
"Sale rental"
|
|
|
|
__name__ = "dash.app.rental"
|
|
|
|
|
2023-08-17 17:45:27 +02:00
|
|
|
class AppRentalb(DashAppBase):
|
|
|
|
"Sale rentalb"
|
|
|
|
__name__ = "dash.app.rentalb"
|
|
|
|
|
|
|
|
class AppWebBookingRental(DashAppBase):
|
|
|
|
"App Web BookingRental"
|
|
|
|
__name__ = "dash.app.web_booking_rental"
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-09-12 22:15:01 +02:00
|
|
|
|
|
|
|
|