I have stored the customer number in ref field of res_partner and in all the searches i am able search the customer by this number. However in the POS Customer Search this is not working. How to enable ref for customer search in POS ? Kindly guide
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
2383
มุมมอง
I could achieve by modifying the code as below.
In addons/point_of_sale/static/src/js/models.js
i. Search for res.partner (around line 362)
ii. In the fields add 'ref' field too.
In addons/point_of_sale/static/src/js/db.js
i. Search for _partner_search_string: function(partner) ( around line 228)
ii. Add if(partner.ref){ str += '|' + partner.ref; } below one of the if condition
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ