I have created a boolean field on Contacts 'is Employee' and in Customers' list that appears on POS I want to show all the Contacts that have 'is Employee' = True.
Where is the code that returns all customers so I can add this restriction?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have created a boolean field on Contacts 'is Employee' and in Customers' list that appears on POS I want to show all the Contacts that have 'is Employee' = True.
Where is the code that returns all customers so I can add this restriction?
Hi,
Try check the following function.
get clients() { if (this.state.query && this.state.query.trim() !== '') { return this.env.pos.db.search_partner(this.state.query.trim()); } else { return this.env.pos.db.get_partners_sorted(1000); } }
/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js
Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up