mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: take reservation checkout as checkin partner departure hour when action done
This commit is contained in:
@@ -701,7 +701,7 @@ class PmsCheckinPartner(models.Model):
|
|||||||
for record in self.filtered(lambda c: c.state == "onboard"):
|
for record in self.filtered(lambda c: c.state == "onboard"):
|
||||||
vals = {
|
vals = {
|
||||||
"state": "done",
|
"state": "done",
|
||||||
"departure": fields.Datetime.now(),
|
"departure": record.reservation_id.checkout,
|
||||||
}
|
}
|
||||||
record.update(vals)
|
record.update(vals)
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user