Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5738 Weergaven

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). 

Avatar
Annuleer
Auteur

@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?

Auteur

Sorry, I meant 'domain_force'. Something I found while grepping the odoo sources.

Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
sep. 23
5322
0
mrt. 21
2779
1
mrt. 18
6665
2
aug. 25
2602
2
jul. 25
1520