mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: get_room_type_capacity filtered lambda
This commit is contained in:
@@ -209,6 +209,6 @@ class PmsRoomType(models.Model):
|
||||
def get_room_type_capacity(self, pms_property_id):
|
||||
self.ensure_one()
|
||||
capacities = self.room_ids.filtered(
|
||||
lambda r: r.pms_property_id.id == pms_property_id
|
||||
lambda r: r.pms_property_id.id == pms_property_id.id
|
||||
).mapped("capacity")
|
||||
return min(capacities) if any(capacities) else 0
|
||||
|
||||
Reference in New Issue
Block a user