Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Privacy on Project management

By
Alain BARDE
on 2/11/14, 4:28 AM 1,540 views

Hi all,

We need a solution to create a policy that I can choose in "Privacy/visibility" menu, so Only the folowwers can view this project.

Do you have any solution for me ?

0

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 2/11/14, 11:52 AM

Is that what you are searching for ??

image description

This is the solution for this case: project_baseuser

Exactly what I need, Thx a lot !

Alain BARDE
on 2/11/14, 12:53 PM

After the installation all the manager can see all the project. they're a configuration to do in open erp ?

Alain BARDE
on 2/11/14, 1:30 PM
0
Bill Ennals
On 4/1/14, 8:25 PM

edit: I just checked and unfortunately this doesn't work on project.project, though it does work on project.phase, which is what made me think it might work on project.project. It causes an invalid field error on 'project_id.members'. I still think that something along these lines is what's required though.

Try this:

  • go to Settings/Technical/Security/Record Rules

  • click create

  • name the record rule something like 'see only projects a user is associated with'

  • in the Object field, enter 'project.project'

  • in the rule definition box enter:

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

  • in the Groups section, click add and select Project Manager

  • save the record rule

  • go to the 'Groups' menu item on the Settings page

  • click on Project Manager

  • check that the rule you just created is there in the record rules tab

  • Also, if there is a rule that looks like this one '[(1, '=', 1)]' relating to projects, delete it.

Does that work?

Bill.

0
Alain BARDE
On 2/11/14, 12:07 PM

Thx for your return,

Yout're right but actually, all the manager can see the project :( I want to only the follower can see this project.

thanks for yout time.

Maybe you are facing this CASE: Public Projects and their documents are still visible to everyone. Portal users access rules are kept unchanged.

Med Said BARA
on 2/11/14, 2:08 PM

I make a fresh company install and only 2 manager with only one follower per project. And the 2 manager can see all the project. I don't understand why

Alain BARDE
on 2/12/14, 6:58 AM

Hi; by "Manager" do you mean "Project Manager" or ADMIN user

Med Said BARA
on 2/12/14, 2:13 PM

I mean Manager. I put the manager right access on two account (3 with the admin account on the fresh install). The access modification is on the configuration / user / admin right, put manager on dropdownlist in front off project field ?

Alain BARDE
on 2/12/14, 6:55 PM

Try creating users with no administration acces rights (to see if it this solve the problem).

Med Said BARA
on 2/13/14, 3:31 AM

Not solved :

Alain BARDE
on 2/13/14, 4:04 AM

The rules : Tâche Project/Task: project manager: see all in managed projects (modified) [('project_id.user_id', '=', user.id)]
Projet Project: project manager: EDIT only managed projects [('user_id', '=', user.id)]
Projet Project: project manager: does not see all (modified) []
Incident de projet Project/Issue: project managers: sees all for Managed projects (modified) [('user_id', '=', user.id)]

Alain BARDE
on 2/13/14, 4:05 AM

yes, the rules are there, but i think there is something wrong in domain filter !!! : [] should be ['|',('user_id','=',user.id)] for Project: project manager: does not see all (modified). (à vérifier et à confirmer)

Med Said BARA
on 2/13/14, 10:11 AM

Works like a charm

Alain BARDE
on 2/13/14, 10:31 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 2/11/14, 4:28 AM
Seen: 1540 times
Last updated: 3/16/15, 8:10 AM