Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2020 Tampilan

Hello Community,

Is it possible to for a specific field to be accessed only by a specific user. For example, let's say I have credit_info field. I want this to be accessed only by Billing role in Accounting, but the issue is that other roles like Bookkeeper can also accessed the credit_info field even though I've set it only to Billing role.

The issue is due to Bookkeeper role inheriting the Billing, and I want to resolve it without removing the inheritance of Billing from Bookkeeper. 

Thank you in advance

Avatar
Buang
Jawaban Terbai

Hi,

To achieve the functionality you can add the specific user group to the field

eg:

<field name="credit_info" groups="module.user_group/>


please refer  the below blog to know about security groups

Security Groups & Access Rights in Odoo


Hope it helps

Avatar
Buang
Jawaban Terbai

As no-one else has responded, here are some thoughts that might help.

You would have to create a new user access group that is NOT part of the Accounting application. The simplest way is to make it part of the technical access group. 

It will not appear in the UI so you'd have to manually add users from the group:

 

Then you could limit access based on this new Access Group.

If you are planning on using Odoo Studio to limit access to the field in the Form View , you should upload the new group and give it an External ID (creating it through the UI doesn't do that).


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Agu 24
4125
1
Nov 23
2200
1
Des 24
4847
0
Jan 24
2410
3
Nov 23
14370