[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:
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user