mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms-api-rest: demo data for property image hotel, icon room type classes, views, init, manifest & services & datamodels (property, user, room_type_class, agency, sale channels)
This commit is contained in:
committed by
Darío Lodeiros
parent
f374f6a102
commit
e0fae5f366
@@ -2,3 +2,5 @@ from . import pms_property
|
||||
from . import res_users
|
||||
from . import account_payment
|
||||
from . import sql_export
|
||||
from . import pms_room_type_class
|
||||
|
||||
|
||||
@@ -88,3 +88,8 @@ class PmsProperty(models.Model):
|
||||
help="Color for pending payment reservations in the planning.",
|
||||
default="rgba(4, 95, 118)",
|
||||
)
|
||||
|
||||
hotel_image_pms_api_rest = fields.Image(
|
||||
string="Hotel image",
|
||||
store=True,
|
||||
)
|
||||
|
||||
10
pms_api_rest/models/pms_room_type_class.py
Normal file
10
pms_api_rest/models/pms_room_type_class.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class PmsRoomTypeClass(models.Model):
|
||||
_inherit = "pms.room.type.class"
|
||||
|
||||
icon_pms_api_rest = fields.Image(
|
||||
string="Icon room type class image",
|
||||
store=True,
|
||||
)
|
||||
Reference in New Issue
Block a user