mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: wizard folio changes write checkout&checkin improvement
This commit is contained in:
@@ -360,9 +360,11 @@ class WizardFolioChanges(models.TransientModel):
|
|||||||
|
|
||||||
def _update_dates(self, reservations, new_checkin, new_checkout):
|
def _update_dates(self, reservations, new_checkin, new_checkout):
|
||||||
for res in reservations:
|
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
|
res.checkin = new_checkin
|
||||||
if new_checkout:
|
elif new_checkout:
|
||||||
res.checkout = new_checkout
|
res.checkout = new_checkout
|
||||||
|
|
||||||
def _update_reservations(
|
def _update_reservations(
|
||||||
|
|||||||
Reference in New Issue
Block a user