Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4487 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
lis 24
30083
1
pro 21
2809
0
pro 21
2354
0
dub 15
4710
2
bře 15
10485