Skip to content

Commit

Permalink
[FIX] pms-l10n_es: fix sending incomplete PV's checkin hours after 1s…
Browse files Browse the repository at this point in the history
…t checkin
  • Loading branch information
miguelpadin committed Oct 3, 2024
1 parent bc46501 commit f9ac160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pms_l10n_es/wizards/traveller_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,9 +1141,9 @@ def ses_send_incomplete_traveller_reports(
]
):
try:
if (
fields.Datetime.now() - communication.create_date
).hours > hours_after_first_checkin_to_inform:
time_difference = fields.Datetime.now() - communication.create_date
hours_difference = time_difference.days * 24 + time_difference.seconds // 3600
if hours_difference > hours_after_first_checkin_to_inform:
# add a note to the reservation
communication.reservation_id.sudo().message_post(
body=_(
Expand Down

0 comments on commit f9ac160

Please sign in to comment.