summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-08-20 16:24:11 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-08-20 16:24:11 +0700
commit3630098ac0ca258ca0d0cd134fea27d4079b6f6e (patch)
tree7db7ba3451c143e39c620ca7766c95c8bca6cf7b
parentc837117a771bbefcf06706d024d4620b331192a9 (diff)
parentc5cd456da8f679664437995636eac4f634f3ad94 (diff)
Merge branch 'odoo-backup' of bitbucket.org:altafixco/indoteknik-addons into odoo-backup
-rw-r--r--indoteknik_custom/models/tukar_guling.py3
-rw-r--r--indoteknik_custom/static/src/js/check_product_barcode.js4
2 files changed, 2 insertions, 5 deletions
diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py
index 4b03d4b0..23b9f085 100644
--- a/indoteknik_custom/models/tukar_guling.py
+++ b/indoteknik_custom/models/tukar_guling.py
@@ -109,9 +109,6 @@ class TukarGuling(models.Model):
('invoice_line_ids.product_id', 'in', product_ids),
]
- if rec.partner_id:
- domain.append(('partner_id', '=', rec.partner_id.id))
-
extra = []
if rec.origin:
extra.append(('invoice_origin', 'ilike', rec.origin))
diff --git a/indoteknik_custom/static/src/js/check_product_barcode.js b/indoteknik_custom/static/src/js/check_product_barcode.js
index f7a1bb75..593b8a5b 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 = 100;
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; // setelah 3 char cepat, dianggap scanner
}
document.addEventListener('keydown', function (e) {