Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3310 มุมมอง

So I was thinking about creating a custom search like shown below under the search Customer searchbox.



There are default searches as shown below added via XML in POS app :

Search name for:
Search tag for:
Search Salesperson for:
Search Related Company for:

I want to add Search Customer ID for:


Any assistance will be highly appreciated.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I had a similar requirement where I wanted search by data stored in ref field and was not available in POS Customer search  However 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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

how can i do that in product list please ? i want to search for a product with my custom field. odoo16


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 23
1856
0
ส.ค. 23
194
Odoo use which javascript framework? แก้ไขแล้ว
1
ก.พ. 22
2572
0
ส.ค. 18
5561
0
ก.พ. 18
6297