odoo/odoo#207571

Created by fw-bot
Merged at d49ab3b86cc7619b1be266eda0c4ccaa67a2d5d2

Statuses:

Linked pull requests
label
odoo-dev:saas-18.2-saas-18.1-point_of_sale-fix-preset-wrong-time-in-back-end-djip-410178-fw
head
fbde3621e057408a47cd3c7741a073e910044bf4
merged
6 months ago by Dhruv Jitendrakumar Patel (djip)
odoo/odoo odoo/enterprise
saas-18.1 #194058 #77558
saas-18.2 #207571 #84183
saas-18.3 #207767 #84312

[FW][FIX] point_of_sale: preset wrong time in back-end

Steps:

  • Open Restaurant in POS system.
  • Create an order with preset as Takeout and select desired time.
  • validate it.
  • open that order in backend.
  • Observe the takeout date & time—it differs from the originally selected time.

Issue:

  • The POS system stores the preset_time in local time directly to the database, but the backend consider it as UTC, leading to mismatched times when displayed.

Fix:

  • The frontend now sets preset_time in UTC before saving, ensuring consistent time handling across the system.

task-4477402
Related: odoo/enterprise#77558

Forward-Port-Of: #194058