file access in document management system

Asked by Bushair

Hi
I have attached a Document using Document Management system ,
i have logged in as admin/admin.
i want all other users to have only read access to this file.
How can i acheive this.?

i created a new user called testuser and assigned to the Employee group.
i have logged into open erp and able to delete the document which i attached using the admin/admin.
Why is it so?

How can i restrict the newly created user assinged to employee group having not the access to delete the file attached using the login admin/admin ?

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Bushair
Solved:
Last query:
Last reply:
Revision history for this message
Husen Daudi (husendaudi) said :
#1

Under the menu.
Administration/Users/Groups
In Employee Group access rights tab define this access rights.
Object | Read
ir.attachment | Define only read tights.

Then It will now allow user belongs to Emplyee group. to delete modify or create attachments.

Regards,
HDA

Revision history for this message
Bushair (bushairka) said :
#2

Hi,
This is exactly what i was looking for.

Thanks in Millions for your mail..

thanks

Revision history for this message
Mihalache Ciprian (ciprian-mihalache) said :
#3

What about only admin can delete a file in document management system. How can I achieve that with a global rule ?

Revision history for this message
Mihalache Ciprian (ciprian-mihalache) said :
#4

I found this document http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/document/doc/access_permissions.rst but the rules doesn't apply.

Example.

In openerp 7 as administrator I create a document in static directory Employee.

Problem:

Even thought I am the owner every employee can edit and delete my files.

"Files or directories that have an "owner" are private. Only their users will
be able to read or modify (including delete) them." . If I choose to put a file in employees folder I want them only to read the file not to modify it or delete.