add app booking

This commit is contained in:
VIctor RUiz 2023-05-24 16:55:30 -05:00
parent 6931716441
commit 5c03ff06e0
3 changed files with 24 additions and 3 deletions

View File

@ -93,6 +93,7 @@ def register():
dash.AppHotelPlanner,
dash.AppHousekeeping,
dash.AppWebCheckIn,
dash.AppBooking,
invoice.InvoiceLine,
invoice.Invoice,
room.HotelTask,

10
dash.py
View File

@ -3,7 +3,7 @@
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"
@ -15,6 +15,7 @@ class DashApp(metaclass=PoolMeta):
"dash.app.hotel_planner",
"dash.app.housekeeping",
"dash.app.web_checkin",
"dash.app.booking",
]
)
return origins
@ -27,6 +28,7 @@ class DashApp(metaclass=PoolMeta):
("hotel_planner", "Planner"),
("housekeeping", "Housekeeping"),
("web_checkin", "Web Checkin"),
("booking", "Booking"),
]
)
return options
@ -36,7 +38,7 @@ class AppHotelPlanner(DashAppBase):
"App Hotel Planner"
__name__ = "dash.app.hotel_planner"
# sdhsad
class AppHousekeeping(DashAppBase):
"App Housekeeping"
__name__ = "dash.app.housekeeping"
@ -45,3 +47,7 @@ class AppHousekeeping(DashAppBase):
class AppWebCheckIn(DashAppBase):
"App Web Check-In"
__name__ = "dash.app.web_checkin"
class AppBooking(DashAppBase):
"App Booking"
__name__ = "dash.app.booking"

View File

@ -14,7 +14,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="active">True</field>
<field name="app_name">hotel_planner</field>
</record>
<!-- sadasd -->
<record model="dash.app.housekeeping" id="dash_app_housekeeping">
<field name="company">1</field>
<field name="icon">key</field>
@ -27,6 +27,20 @@ this repository contains the full copyright notices and license terms. -->
<field name="app_name">housekeeping</field>
</record>
<record model="dash.app.booking" id="dash_app_booking">
<field name="company">1</field>
<field name="icon">key</field>
<field name="kind">internal</field>
</record>
<record model="dash.app" id="app_booking">
<field name="name">Booking</field>
<field name="origin">dash.app.booking,1</field>
<field name="active">True</field>
<field name="app_name">booking</field>
</record>
<record model="dash.app.web_checkin" id="dash_app_web_checkin">
<field name="company">1</field>
<field name="icon">key</field>