[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) <jcb@odoo.com>
This commit is contained in:
Pedram (pebr)
2024-01-11 17:00:48 +00:00
parent 9564374aa1
commit 2e7a18883a
@@ -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",
},