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

Hello everyone,

Suppose I want to show only Customer Invoices and Vendor Bills journals for user X on the accounting dashboard, how would I go about it? I have read that record rules can be used to define what records a user can access but I have no idea how to implement set it up as the documentation doesn't really go that deep. Any guidance on this would be much appreciated. Thanks in advance 

Avatar
Annuleer
Auteur

Thanks a lot

While this method works for filtering the journals to a specific user group, it doesn't seem to allow the user register payments for that filtered journal. The user receives the following access error message:

'Doesn't have 'read' access to:
- Journal (account.journal)'

Is it possible to allow payment registering for the filtered journals?

Beste antwoord

Hi,


To restrict user X to only see the "Customer Invoices" and "Vendor Bills" journals on the Accounting dashboard, you can create a record rule on the account.journal model. First, create a security group: go to Settings > Users & Companies > Groups, create a new group, and give it a name. Under the Users tab, add user X to this group.

Next, create a record rule: go to Settings > Technical > Security > Record Rules, click Create, and fill in the details. Set the Model to Journal, and use a domain filter like:

[('code', 'in', ['INV', 'BILL'])]

Alternatively, you can use the name field:

[('name', 'in', ['Customer Invoices', 'Vendor Bills'])]

Using the type field (e.g., [('type', 'in', ['sale', 'purchase'])]) is also possible, but it may include other journals like Expenses. Make sure Global is unchecked, and assign the rule to the group you created earlier. Save the rule. After refreshing, the accounting dashboard for user X will now only display the specified journals.


Hope it helps

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 25
214
2
okt. 25
938
2
okt. 25
636
1
sep. 25
1762
3
sep. 25
975