[DEL]pms_api_rest: del amenityIds from amenity type datamodel

This commit is contained in:
Darío Lodeiros
2022-06-20 18:50:42 +02:00
parent 0c042f2502
commit b9a5b1dcf1
2 changed files with 0 additions and 3 deletions

View File

@@ -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)

View File

@@ -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"))