Hi All,
I'm new to oddo and just installed odoo 15 community. I have an issue and hope to find solution for it.
We have multiple salesperson and each one is collecting an amount from specific store and register the payment by himself on the system.
I need a way that the salesperson can only see the list of customers he is dealing with them and only can see the payment records he registered. Means he cannot see the payments that registered by other salesman.
I hope it's clear. Is there any specific way to do it ? giving a permission or access rules ?
Thank you.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- प्रोजेक्ट
- MRP
This question has been flagged
Hello Ali,
Please find below code it may help you.
@api.model
def search_read(self, domain=None, fields=None, offset=0, limit=None, order=None):
if self.env.user.has_group('group here'):
domain += [('invoice_user_id', '=', self.env.user.id)]
return super(Classname, self).search_read(domain=domain, fields=fields, offset=offset, limit=limit, order=order)
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Up ..