Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7 Trả lời
11077 Lượt xem

Hi all, I´m testing OpenERP v7 funcionalities and I have a question about project views. I have configured various project assuming that projects member can view only those projects where they are involved. Projects are configured as "only followers". The problems comes when team member cannot see the projects they are involved unless they the become also "followers" or the project becomes "public".

Is there anyway to cofigure rigth access so that project member can see by default the projects they are involved.

Thank you very much!!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Mr. Oliver

create an access rule inside / settings--> security -- > Record Rules -->

select object ( project ) and put this code

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

in Rule Definition (Domain Filter) field and fill other fields as you want and then see effect

add specific project user in project -- Team TAB

Thanks

Ảnh đại diện
Huỷ bỏ

Thx for that answer!

Could you please have a look at this question:

http://help.openerp.com/question/40960/how-to-use-access-rights-and-record-rules/

how do we apply this specific rule to the project, i didnt understand last "add specific project user in project" line

Câu trả lời hay nhất

Set the Privacy/Visibility to "Employees only" on the specific project. From here you have two options:

  • Create the following Record Rule in Settings --> Security --> Record Rules:
    • object/model: project.project
    • name: See team project only
    • domain:['&', ('privacy_visibility', 'in', ['employees']), ('members','in', [user.id])]
    • apply for read: [x]
    • apply for write: [x]
    • apply for create: [x]
    • apply for delete: [x] Since it's a global rule, you shouldn't set any group restriction.

OR

  • Edit Record Rule:
    • "Project: employees: public, portal, employees or following"
    • Domain: ['|','|', ('privacy_visibility', 'in', ['public', 'portal']), '&', ('privacy_visibility', 'in', ['employees']), ('members','in', [user.id]), '&', ('privacy_visibility', '=', 'followers'), ('message_follower_ids', 'in', [user.partner_id.id])]

Please note that I'm a newbie, but for me both solution worked.

Ảnh đại diện
Huỷ bỏ

Thanks for this. I tried the second option and it worked perfectly in v8

Câu trả lời hay nhất

You can try with record rules on projects menu...

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

how can we enable both ,

-project members can see those projects

-followers can also see the project

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
68187
2
thg 12 23
24740
2
thg 10 22
1858
1
thg 10 21
8905
5
thg 1 24
13757