I have a model with a partner id in it. There is a list view accessible from a menu which also appears in the portal. What is the recommended way to show employees all records (and include a partner_id column), but portal users only their own records (hiding the partner_id column for them).
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
1
Odpovědět
5703
Zobrazení
Hi Ron,
In that case you should make sure that the 'partner_id' field in your view definition has the the following attribute and value:
groups="base.group_user"
This will restrict this field to appear only for employees.
Portal users belong to a group "Portal" that does not include the group "Employees".
Regards,
Jordi Ballester
www.eficent.com
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
1
zář 23
|
5236 | ||
|
0
bře 21
|
2719 | ||
Website: Method post does not work
Vyřešeno
|
|
1
bře 18
|
6618 | |
|
2
srp 25
|
2404 | ||
|
2
čvc 25
|
1411 |
@Jordi: thank you. Did not know it would be so easy. For portal users, how would I restrict the list to show only their records? Do I use filter_domain, domain, or force_domain?
Sorry, I meant 'domain_force'. Something I found while grepping the odoo sources.