Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
191 Tampilan

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
Buang
Penulis

Thanks a lot

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jul 25
406
2
Jul 25
593
1
Jun 25
375
0
Jun 25
269
2
Jun 25
991