LaOsaCoop/Odoo16#74 add pos_barcode_block_on_error
This commit is contained in:
parent
f4bc2ee66b
commit
a24b4392d6
4 changed files with 134 additions and 0 deletions
35
pos_barcode_block_on_error/README.rst
Normal file
35
pos_barcode_block_on_error/README.rst
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
POS: Block barcode scanning on error popup
|
||||
=========================================
|
||||
|
||||
Summary
|
||||
-------
|
||||
This Point of Sale extension prevents the POS from processing further barcode
|
||||
scans while the "barcode not found" error popup is visible. It also avoids the
|
||||
scanner's Enter/Escape keystrokes from closing the popup, so the cashier must
|
||||
explicitly dismiss it (click/tap) before continuing.
|
||||
|
||||
Features
|
||||
--------
|
||||
- Takes exclusive control of the barcode reader while the error popup is shown.
|
||||
- Prevents scanner-triggered keyboard "clicks" from closing the popup.
|
||||
- Keeps the initial error message visible; subsequent scans are ignored.
|
||||
- Includes CSS to highlight the error popup for better visibility.
|
||||
|
||||
Usage
|
||||
-----
|
||||
- Scan a non-existent barcode in the POS.
|
||||
- The error popup will show.
|
||||
- Further scans will be ignored while the popup is visible.
|
||||
- Close the popup via mouse/touch to resume scanning.
|
||||
|
||||
Limitations
|
||||
-----------
|
||||
- While the popup is open, all barcode actions are blocked (product, client,
|
||||
weight, price, discount, GS1, etc.). Customize the hook if you need
|
||||
exceptions.
|
||||
|
||||
|
||||
Credits
|
||||
-------
|
||||
- Author: Criptomart
|
||||
- License: AGPL-3
|
||||
Loading…
Add table
Add a link
Reference in a new issue