From 2e7a18883a6d2ecfc15f4953b3f42c6dfc82c321 Mon Sep 17 00:00:00 2001 From: "Pedram (pebr)" Date: Wed, 10 Jan 2024 11:01:52 +0100 Subject: [PATCH] [FIX] point_of_sale: use system date format for date search Prior to this commit, the date search was hardcoded to "yyyy-MM-dd HH:mm a", inconsistent with the system's date format display. This commit adjusts the date search to align with the system date format. opw-3677157 closes odoo/odoo#148827 Signed-off-by: Joseph Caburnay (jcb) --- .../static/src/app/screens/ticket_screen/ticket_screen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js b/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js index b33c6d99522..8eeaf84cd47 100644 --- a/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js +++ b/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js @@ -642,7 +642,7 @@ export class TicketScreen extends Component { modelField: "pos_reference", }, DATE: { - repr: (order) => order.date_order.toFormat("yyyy-MM-dd HH:mm a"), + repr: (order) => formatDateTime(order.date_order), displayName: _t("Date"), modelField: "date_order", },