Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to filter the customers in POS

on 9/1/16, 6:56 AM 124 views

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

Krupesh Laiya
On 9/1/16, 8:32 AM

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;



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


Hope this will help you.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 9/1/16, 6:56 AM
Seen: 124 times
Last updated: 9/1/16, 8:32 AM