odoo/odoo#181644

Created by POS IoT, Vlad Stroia (vlst)
Merged at e058d96096632f56126762c0f47319a65e0467b6

Statuses:

label
odoo-dev:master-pos_ref_numpad_util-vlst
head
90e9ec70f4202e2b9a6ad49bec7fe8fb4d16fe5e
merged
1 year ago by POS IoT, Joseph Caburnay (jcb)
odoo/odoo
master #181644

[REF] point_of_sale: simplify numpad tour util

When simply using :contains for targeting a specific button on the numpad we might run into the issue where doing :contains('1') targets the +10 button instead of the 1 button.

To solve this we currently rely on overly complicated js code.

In this commit we simplify the code by taking advantage of regex.

task-4214042


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