[IMP]pms: wizard folio changes write checkout&checkin improvement

This commit is contained in:
Darío Lodeiros
2023-07-02 09:11:55 +02:00
parent 8043c7f654
commit eae4cd1df8

View File

@@ -360,9 +360,11 @@ class WizardFolioChanges(models.TransientModel):
def _update_dates(self, reservations, new_checkin, new_checkout):
for res in reservations:
if new_checkin:
if new_checkin and new_checkout:
res.write({"checkin": new_checkin, "checkout": new_checkout})
elif new_checkin:
res.checkin = new_checkin
if new_checkout:
elif new_checkout:
res.checkout = new_checkout
def _update_reservations(