mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_api_rest: add language in property services
This commit is contained in:
committed by
Darío Lodeiros
parent
f882a02390
commit
1daafbb15d
@@ -28,3 +28,4 @@ class PmsPropertyInfo(Datamodel):
|
||||
simpleOutColor = fields.String(required=False, allow_none=True)
|
||||
simpleInColor = fields.String(required=False, allow_none=True)
|
||||
simpleFutureColor = fields.String(required=False, allow_none=True)
|
||||
language = fields.String(required=True, allow_none=False)
|
||||
|
||||
@@ -47,6 +47,7 @@ class PmsPropertyService(Component):
|
||||
simpleOutColor=prop.simple_out_color,
|
||||
simpleInColor=prop.simple_in_color,
|
||||
simpleFutureColor=prop.simple_future_color,
|
||||
language=prop.lang,
|
||||
)
|
||||
)
|
||||
return result_properties
|
||||
@@ -85,6 +86,7 @@ class PmsPropertyService(Component):
|
||||
staffReservationColor=pms_property.staff_reservation_color,
|
||||
toAssignReservationColor=pms_property.to_assign_reservation_color,
|
||||
pendingPaymentReservationColor=pms_property.pending_payment_reservation_color,
|
||||
language=pms_property.lang,
|
||||
)
|
||||
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user