Fix
This commit is contained in:
parent
56950e2fb7
commit
ee25c6aa56
|
@ -781,8 +781,10 @@ class Booking(Workflow, ModelSQL, ModelView):
|
||||||
def check_rooms(self):
|
def check_rooms(self):
|
||||||
Housekeeping = Pool().get('hotel.housekeeping')
|
Housekeeping = Pool().get('hotel.housekeeping')
|
||||||
rooms_ids = []
|
rooms_ids = []
|
||||||
for line in self.lines:
|
for folio in self.lines:
|
||||||
rooms_ids.append(line.room.id)
|
if folio.registration_state == 'check_out':
|
||||||
|
continue
|
||||||
|
rooms_ids.append(folio.room.id)
|
||||||
housekeepings = Housekeeping.search([
|
housekeepings = Housekeeping.search([
|
||||||
('state', '!=', 'clean')
|
('state', '!=', 'clean')
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue