跳至内容
菜单
此问题已终结
1 回复
3418 查看

Hi,

I would like to implement the following scenario.

  • User must be able to see all the records and should be able to edit only his own records

Is it possible to do it in openerp 7 and if possible how to do it?

形象
丢弃
最佳答案

You can define Access Rights to your Object as readonly (disable write and delete access). And define Record Rules for your Object with full access, but with domain:

['|',('user_id','=',False),('user_id','=',user.id)]

So, to all user will apply Access Rights and if user in domain then also apply Record Rules.

形象
丢弃

What is the meaning of this filter code? I do not understand.

['|',('user_id','=',False),('user_id','=',user.id)]

相关帖文 回复 查看 活动
1
3月 25
1476
0
8月 25
1452
2
4月 23
25785
0
12月 20
3295
2
6月 20
17865