odoo/odoo#199306

Created by fw-bot
Merged at 457eb641dcede3e4140d17e7aa9b1706a389c2fe

Statuses:

label
odoo-dev:saas-18.2-saas-17.4-pos-fix-runbot-114938-unsyncing-of-split-order-on-test-parp-418701-fw
head
aff754a4c96c15c18a0859487b5e1d1b0f383eb7
merged
8 months ago by Parthkumar Patel (parp)
odoo/odoo
saas-17.4 #198326
18.0 #199069
saas-18.1 #199292
saas-18.2 #199306
saas-18.3
saas-18.4
19.0
master #199375

[FW][FIX] pos_restaurant: prevent unsyncing of split orders in tests

Issue:

In SplitBillScreenTour2, navigating back and forth between FloorScreen and ProductScreen triggered a SyncAllOrders call.
Immediately after, another SyncAllOrders call was sent from createSplittedOrder.

Since the first request was still in progress, the second request sometimes sent only one order to the backend.
This caused the original order to be filtered out from syncingOrders, leading to inconsistencies.

Fix:

Step were added to check that the request is processed.

Runbot Error: 114938

Forward-Port-Of: #199069
Forward-Port-Of: #198326