odoo
odoo copied to clipboard
[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
Nice. I didn't know that contains works with regex.
robodoo r+
Nice. I didn't know that
containsworks with regex.
indeed, only the hoot version does
