odoo/odoo#202724

Created by Manu Vaillant (manv)
Merged at 171ccb688927f03f4b6eb59095a0da9afd99c3ed

Statuses:

label
odoo-dev:18.0-fix-restaurant-idle-combo-tb-manv
head
a68858a38f74074d8d5fdc90164c1a20b17e634e
merged
7 months ago by POS IoT, David Monnom (moda)
odoo/odoo
18.0 #202724
saas-18.1 #203554
saas-18.2 #204132
saas-18.3
saas-18.4
19.0
master #204149

[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