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

How do I restrict access to a directory in Knowledge Management?

By
Paul Strinati
on 4/15/14, 3:27 PM 1,421 views

Hi - I'm running OpenERP 7 on Ubuntu Server 12.04. I have installed HR, HR_Contracts, Project Management, CRM, Accounting & Finance, Document Management, Employee Appraisals, and a few other modules. I have LDAP authentication working with AD, with LDAP_Populate also working.

I've created and linked employee records to the relevant users, and have started to setup Employee Contracts for each employee with PDF attachments of their actual employment contracts (does anyone know if these appear anywhere in Knowledge Management? It would appear not, but thought I would check!).

If I add attachments to the Employee records directly (i.e. not under Contracts), these are visible to all HR / Employees - so I would like to setup some directories to store employee files that are accessible only by the employee, their line manager, and HR / Officers and HR / Managers, but separate from the Contracts (i.e. I want them to be visible in Knowledge Management to users with the correct permissions, and hence accessible via the FTP service).

In Knowledge Management I have setup the following directory structure:

  • HR (Type: Static Directory; Parent: Documents)
  • Staff Files (Type: Folders per Resource; Parent: HR; Resource Model: Employee)

    • T&C (Type: Static Directory; Parent: Staff Files)
    • Disciplinary (Type: Static Directory - Parent: Staff Files)

I have added the HR / Officer and HR / Manager groups to the Security tab for the directories HR, T&C, and Disciplinary.

I have (internal) FTP access working and can attach via Windows Explorer in Windows 7, and if I connect as a user who is a member of the HR / Officer (or HR / Manager) group, I can see the directory structure above in Explorer. Copying files to one of the directories above results in them being attached to the relevant employee record. They are not visible to anyone who is not a member of the HR / Officer or HR / Manager groups.

I would like to add access to the T&C directory to the Employee, their Line Manager in addition to the HR / Officer and HR / Manager groups; likewise, I'd like the Line Manager to be able to see the Disciplinary directory, but not the employee.

Is that possible? It feels like it should be possible via a combination of the Knowledge > Directories > Security, and the Settings > Groups > *Group_Name* > Access Rights tabs, but I can't find any documentation that shows how to setup access controls on new directory structures for individual users.

Thanks in advance!

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

1 follower(s)

Stats

Asked: 4/15/14, 3:27 PM
Seen: 1421 times
Last updated: 3/16/15, 8:10 AM