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

I am using openerp-7 and now want to specify readonly permission for some fields to specific users and write only permission for other users.can i do that in model fields.can i give 'readonly' and 'writeonly' permissions for certain users for these model fields.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi, You can give rights to the user group. You do this on your python file, like this:

'employee': fields.char(string='Employee name',read=['base.group_sale_salesman'],write=['base.group_sale_manager'])

This will give group_sale_salesman read-only permissions, and group_sale_manager write permissions...

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lis 24
30839
1
gru 21
3160
0
gru 21
2731
0
kwi 15
5051
2
mar 15
10794