I have a scanner, and I want it so that when I scan any code, it will automatically fill into the search box. Is there any way to do this? I have some solutions, but they seem quite complex?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Yes, it’s possible to set up Odoo so that when you scan a barcode, it automatically fills into the search box. This can be achieved by using the onchange method in Odoo, which triggers an action when a specified field is altered. Here’s a simplified example:
class Product(models.Model):
_name = 'product.product'
barcode = fields.Char('Barcode')
@api.onchange('barcode')
def onchange_barcode(self):
if self.barcode:
# Your logic here to autofill fields
In this example, whenever the barcode field changes (i.e., when you scan a new barcode), the onchange_barcode method will be triggered. You can put your logic inside this method to autofill the fields you want.
"I think you might have misunderstood my point. I want, when I am on the tree view screen, that when I scan or type any key, the system automatically fills it into the search box and displays the results
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
มี.ค. 15
|
13040 | ||
|
0
มี.ค. 25
|
1091 | ||
|
1
พ.ค. 25
|
3729 | ||
|
1
ธ.ค. 21
|
5026 | ||
|
1
พ.ย. 21
|
2463 |