mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_api_rest: count free rooms property domain
This commit is contained in:
@@ -322,7 +322,12 @@ class PmsCalendarService(Component):
|
||||
{
|
||||
"room_type_id": room_type.id,
|
||||
"rooms_total": len(
|
||||
self.env["pms.room"].search([("room_type_id", "=", room_type.id)])
|
||||
self.env["pms.room"].search(
|
||||
[
|
||||
("room_type_id", "=", room_type.id),
|
||||
("pms_property_id", "=", pms_property_id),
|
||||
]
|
||||
)
|
||||
),
|
||||
}
|
||||
for room_type in room_types
|
||||
|
||||
Reference in New Issue
Block a user