mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Last commit. Mixing apples and oranges
This commit is contained in:
@@ -1166,7 +1166,7 @@ class HotelReservation(models.Model):
|
|||||||
|
|
||||||
@api.constrains('adults')
|
@api.constrains('adults')
|
||||||
def _check_adults(self):
|
def _check_adults(self):
|
||||||
if self.adults == 0 and self.room_id and self.room_id > 0:
|
if self.adults == 0 and self.room_id and self.room_id.capacity > 0:
|
||||||
self.adults = self.room_id.capacity
|
self.adults = self.room_id.capacity
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
|||||||
Reference in New Issue
Block a user