mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: Room type capacity filter by property
This commit is contained in:
@@ -465,7 +465,7 @@ class AvailabilityWizard(models.TransientModel):
|
||||
board_service_room_id
|
||||
)
|
||||
nights = (checkout - checkin).days
|
||||
adults = adults or room_type.get_capacity()
|
||||
adults = adults or room_type.get_room_type_capacity(pms_property_id)
|
||||
room_type_total_price_per_room += (
|
||||
board_service_room.amount * nights * adults
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user