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

How to filter the customers in a multi company system where i can see only the customers that is related to the current company...now it is showing all customers inside pos session

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

In js folder of pos module you can find the model.js (line no. near to 171) where you find the below code:

model: 'res.partner',

fields: ['name','street','city','state_id','country_id','vat','phone','zip','mobile','email','ean13','write_date'],

domain: [['customer','=',true]],

loaded: function(self,partners){

self.partners = partners;

self.db.add_partners(partners);

},


you can add your domain like:


domain: [['customer','=',true], ['company_id','=', USERCOMPANYID]],

 You have to extend the js file of pos.


Here you can find how to inherit the js in pos

http://odoo-development.readthedocs.io/en/latest/dev/pos/add_field.html

Hope this will help you.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
เม.ย. 25
1550
1
ส.ค. 24
2432
How to delete POS Sessions! Odoo 16 แก้ไขแล้ว
3
พ.ค. 24
12090
POS Session wont close แก้ไขแล้ว
1
ก.ย. 23
4055
0
ส.ค. 23
2000