Closed robinkeunen closed 7 months ago
@carmenbianca @DarioLodeiros
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
https://github.com/OCA/pms/blob/01d869b4697e04d0fa22429a1c511c5b5dbb76b6/pms/wizards/pms_booking_engine.py#L183-L185
_compute_availability_results
is called when the dates are changed on the booking_engine. It gets the availabilities for each room_type frompms_property.availability
and computes a bunch of ORM commands from it.If I understand correctly, this bit of code is useless since
record.availability_results = False
is done at line 185 https://github.com/OCA/pms/blob/01d869b4697e04d0fa22429a1c511c5b5dbb76b6/pms/wizards/pms_booking_engine.py#L223-L225