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:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Projekt
- MRP
To pytanie dostało ostrzeżenie
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
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ę
Up ..