diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-08-21 09:10:12 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-08-21 09:10:12 +0700 |
| commit | d235175fba927ce59461978a5c786a018c6be62a (patch) | |
| tree | 183342fc995607cc32c19495f1245f4e3a35cbb0 /indoteknik_custom/static | |
| parent | a6592c9b788fe366fc2780af40175805bab6b75c (diff) | |
| parent | 919af07c186c43f2e9f41c005d2ba16aa5e8596d (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/static')
| -rw-r--r-- | indoteknik_custom/static/src/js/check_product_barcode.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/static/src/js/check_product_barcode.js b/indoteknik_custom/static/src/js/check_product_barcode.js index f7a1bb75..9da41479 100644 --- a/indoteknik_custom/static/src/js/check_product_barcode.js +++ b/indoteknik_custom/static/src/js/check_product_barcode.js @@ -4,7 +4,7 @@ odoo.define('indoteknik_custom.prevent_manual_typing', function (require) { console.log("✅ Custom JS from indoteknik_custom loaded!"); - const THRESHOLD_MS = 40; // jeda antar karakter dianggap scanner kalau <40ms + const THRESHOLD_MS = 300; let lastTime = 0; let burstCount = 0; @@ -16,7 +16,7 @@ odoo.define('indoteknik_custom.prevent_manual_typing', function (require) { } else { burstCount = 1; } - return burstCount >= 3; // setelah 3 char cepat, dianggap scanner + return burstCount >= 2; } document.addEventListener('keydown', function (e) { |
