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
d8aa915e1f
commit
ec00f1069b
@@ -1,6 +1,7 @@
|
||||
from odoo.addons.base_rest import restapi
|
||||
from odoo.addons.base_rest_datamodel.restapi import Datamodel
|
||||
from odoo.addons.component.core import Component
|
||||
from odoo.addons.pms_api_rest.services.manage_url_images import url_image
|
||||
|
||||
|
||||
class PmsPropertyService(Component):
|
||||
@@ -48,6 +49,7 @@ class PmsPropertyService(Component):
|
||||
simpleInColor=prop.simple_in_color,
|
||||
simpleFutureColor=prop.simple_future_color,
|
||||
language=prop.lang,
|
||||
hotelImageUrl=url_image(self, 'pms.property', prop.id, 'hotel_image_pms_api_rest'),
|
||||
)
|
||||
)
|
||||
return result_properties
|
||||
|
||||
Reference in New Issue
Block a user