[FIX] point_of_sale: reduce orders to sync in cross-orders
With the cross-orders feature, whenever the PoS have to sync with the server, it send to the servers the orders that have changed since the last sync. The problem is that we added to this set all the orders that we loaded from the server even if they didn't change between the two sync. We fix this here. closes odoo/odoo#119929 X-original-commit: 4ba8699b95325480c9ebfc0ca3c8a2433b15b87a Signed-off-by: Monnom David (moda) <moda@odoo.com>
This commit is contained in:
@@ -450,7 +450,7 @@ export class PosGlobalState extends PosModel {
|
||||
}
|
||||
_onReactiveOrderUpdated(order) {
|
||||
order.save_to_db();
|
||||
if (this.isOpenOrderShareable()) {
|
||||
if (this.isOpenOrderShareable() && !this.loadingOrderState) {
|
||||
this.ordersToUpdateSet.add(order);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user