Fix
This commit is contained in:
parent
8e98f84431
commit
2077825eab
4
folio.py
4
folio.py
|
@ -221,10 +221,10 @@ class Folio(ModelSQL, ModelView):
|
|||
|
||||
def check_room(self):
|
||||
Housekeeping = Pool().get('hotel.housekeeping')
|
||||
housekeeping, _ = Housekeeping.search([
|
||||
hk, _ = Housekeeping.search([
|
||||
('room', '=', rec.room.id)
|
||||
])
|
||||
if housekeeping.state != 'clean':
|
||||
if hk.state != 'clean':
|
||||
raise UserError(gettext('hotel.msg_room_no_clean', s=hk.room.name))
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue