Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1422 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 24
3527
1
lis 23
1827
1
gru 24
4395
0
sty 24
2286
3
lis 23
13882