mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[DEL]pms_api_rest: del amenityIds from amenity type datamodel
This commit is contained in:
@@ -14,4 +14,3 @@ class PmsAmenityTypeInfo(Datamodel):
|
||||
_name = "pms.amenity.type.info"
|
||||
id = fields.Integer(required=True, allow_none=False)
|
||||
name = fields.String(required=True, allow_none=False)
|
||||
pmsAmenityIds = fields.List(fields.Integer(), required=False)
|
||||
|
||||
@@ -54,7 +54,6 @@ class PmsAmenityTypeService(Component):
|
||||
PmsAmenityTypeInfo(
|
||||
id=amenity_type.id,
|
||||
name=amenity_type.name,
|
||||
pmsAmenityIds=amenity_type.pms_amenity_ids.ids,
|
||||
)
|
||||
)
|
||||
return result_amenity_types
|
||||
@@ -80,7 +79,6 @@ class PmsAmenityTypeService(Component):
|
||||
return PmsAmenityTypeInfo(
|
||||
id=amenity_type.id,
|
||||
name=amenity_type.name,
|
||||
pmsAmenityIds=amenity_type.pms_amenity_ids.ids,
|
||||
)
|
||||
else:
|
||||
raise MissingError(_("Amenity Type not found"))
|
||||
|
||||
Reference in New Issue
Block a user