[FIX] point_of_sale: Flush order not null date order

The field date_order cas removed in a previous commit.
Thus, this line needs to be removed as well.

closes odoo/odoo#133654

Related: odoo/enterprise#46580
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
rhe-odoo
2023-10-30 16:41:34 +00:00
parent a1a77d4ffa
commit 384c4e2f21
@@ -1089,7 +1089,6 @@ export class PosStore extends Reactive {
} else {
for (const order of orders) {
const reactiveOrder = this.orders.find((o) => o.uid === order.id);
reactiveOrder.date_order = null;
reactiveOrder.finalized = false;
this.db.remove_order(reactiveOrder.uid);
this.db.save_unpaid_order(reactiveOrder);