[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user