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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
3
kwi 25
|
1341 | ||
|
1
sie 24
|
2121 | ||
How to delete POS Sessions! Odoo 16
Rozwiązane
|
|
3
maj 24
|
11327 | |
POS Session wont close
Rozwiązane
|
|
1
wrz 23
|
3652 | |
|
0
sie 23
|
1744 |