odoo/odoo#204132

Created by fw-bot
Merged at fbdceace4259646adbf5b9515c2c6eb441436a00

Statuses:

label
odoo-dev:saas-18.2-18.0-fix-restaurant-idle-combo-tb-manv-425741-fw
head
048eeee19a11d9f68bbe2aea4bd76fc01a558347
merged
7 months ago by Manu Vaillant (manv)
odoo/odoo
18.0 #202724
saas-18.1 #203554
saas-18.2 #204132
saas-18.3
saas-18.4
19.0
master #204149

[FW][FIX] pos_restaurant: fix tb when idle timeout

  • Fix traceback appearing when after 3 minutes, we're automatically redirected to the floor screen and we had a combo selector popup opened. We were redirected to the floorscreen but the popup was still opened and when closing it it was throwing a traceback.
  • Now just before redirecting idle user to the floorplan, we first close all opened modal.

Steps to reproduce :
- Open "Restaurant"
- Open an empty table
- Click combo product
- Wait 180s :d
- You'll be automatically redirected to floorplan, the combo selection popup is still opened
- When closing it you have a traceback

task-4661502

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #203554
Forward-Port-Of: #202724