def _compute_tracking_number(self): for record in self: record.tracking_number = str((record.session_id.id % 10) * 100 + record.sequence_number % 100).zfill(3)
Based on my understanding of this function when it computes the tracking_number (Order Number), it picks the remainder of the session_id when divided by 10 and multiplies by 100. then adds the remainder of the sequence_number when divided by 100.
For cases i have witnessed in my orders, 2 orders in the same pos session have a session_id of POS/00107 and sequence_numbers 00120-017-0370 and 00120-021-0170 respecitvely. Now with the function above, the order number is going to be obviously the same for both the orders and this is a problem since i use the customer display. The 2 customers wont be able to tell what order belongs to whom since the order numbers have the same order number.
Can someone tell me how to go about this
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1087
มุมมอง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
ธ.ค. 23
|
1854 | ||
|
0
มิ.ย. 25
|
367 | ||
Payment methods in POS V17
แก้ไขแล้ว
|
|
2
ก.ค. 25
|
1648 | |
|
1
มี.ค. 25
|
1036 | ||
Manipulating UOM in POS screen
แก้ไขแล้ว
|
|
1
ก.พ. 25
|
1005 |