[FW][FIX] point_of_sale: prevent double confirmation of dialog
For the TextInputPopup component a feature was introduced in 2f5c5c15644412cfb6493c661b2f1b927c8cc7e2 that allows the user to confirm the popup by simply clicking enter.
The problem is that the dialog itself has a hotkey on "CTRL+Enter" that will also confirm the popup.
This means that if a user uses the "CTRL+Enter" hotkey, the popup will be confirmed twice.
Steps to reproduce:
- In restaurant, click the button to add a new floor
- Write a name for the floor
- Click "CTRL+Enter"
- Observe that 2 floors with the given name were created instead of one.
The fix: We stop the propagation of the event
Task: 4698289
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#212134
This PR targets saas-18.3 and is part of the forward-port chain. Further PRs will be created up to master.
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
@vlst-odoo this forward port of odoo/odoo#212134 is awaiting action (not merged or closed).
