odoo/odoo#199292

Created by fw-bot
Merged at 1b8f5df6a06a12791577acf1ed94f18f7c6b1fcf

Statuses:

label
odoo-dev:saas-18.1-saas-17.4-pos-fix-runbot-114938-unsyncing-of-split-order-on-test-parp-418333-fw
head
4edc85da0d202c5d45ae23d909259c11fda9314f
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