Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:34:19+00:00 2026-06-06T18:34:19+00:00

Possible Duplicate: Tasks should show up only if the user has been assigned it

  • 0

Possible Duplicate:
Tasks should show up only if the user has been assigned it

I know I have to use access rules I am getting confused on how to use the globals here. I want each manager in projects to access only their project, phase and tasks.

Cheers,
Vishal

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:34:20+00:00Added an answer on June 6, 2026 at 6:34 pm

    OpenERP has two kinds of security restrictions that can be assigned to a user group:

    • Record Rules are filters applied on Create, Read, Write, Unlink operations, and allow per-document access-control, once access right are already granted. Users will only be able to perform an operation on a given document if the document matches at least one of the record rules. The default policy is ALLOW, so if no rule exists for a given model, all documents of that model may be accessed by users who have the necessary access rights.

    • Access Rights are Create, Read, Write, Unlink, yes/no flags (similar to Unix FS permissions), and allow per-model access control. They state whether members of this group may perform a Create, Read, Update, and Delete operation on any document of a certain document model (e.g. a project task). The default policy is DENY, so by default any operation will be refused if the user does not explicitly have the right to perform it via one of her groups’ access rights.

    Both Access Rights and Record Rules may also be defined globally without assigning them to a specific group, in which case they apply to everyone. There is one pitfall for Record Rules: global rules may NOT be relaxed by other rules (on purpose!), so use with care.

    In your case it looks like you should define one extra Record Rule on the Project User group that explicitly restricts access on Project, Project Tasks and Phase to your own tasks. You need to create a new entry in the Security Rules menu with these parameters:

    object/model: project.task
    name: See own tasks only
    domain: ['|',('user_id','=',False),('user_id','=',user.id)]
    (means: your own tasks and unassigned ones)
    apply for read: [x]
    apply for write: [x]
    apply for create: [x]
    apply for delete: [x]
    groups: Project / User
    
    object/model: project.project
    name: See own project only
    domain: ['|',('user_id','=',False),('user_id','=',user.id)]
    (means: your own project and unassigned ones)
    apply for read: [x]
    apply for write: [x]
    apply for create: [x]
    apply for delete: [x]
    groups: Project / User
    
    
    object/model: project.phase
    name: See own phase only
    domain: ['|',('user_id','=',False),('user_id','=',user.id)]
    (means: your own phase and unassigned ones)
    apply for read: [x]
    apply for write: [x]
    apply for create: [x]
    apply for delete: [x]
    groups: Project / User
    

    The domain of a record rule is a standard OpenERP domain that is evaluated on the records on which you are trying to perform the operation, and can refer to a user variable that contains the current user’s data (technically, a browse_record on the current user). Look for search() in

    Note: Have a look at the existing Record Rules to see what they’re doing first, and be sure to read the explanations on the Record Rule form when you are adding yours. And remember that if you do something wrong with Access Rights and Record Rules, you can always fix the mess with the admin account, as these security restrictions do not apply to the admin (similarly to the root user on Unix).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why should I use a thread vs using a process? I have
Possible Duplicate: ASP.Net:Best way to run scheduled tasks I have to make a scheduled
Possible Duplicate: Threads vs Processes in Linux To implement multi-tasks programs we could use
Possible Duplicate: Activity not started, its current task has been brought to the front
Possible Duplicate: Finding all cycles in graph I have a task I've been wrapping
Possible Duplicate: Handling exceptions from Java ExecutorService tasks I use the ExecutorService from Java
Possible Duplicate: Gui toolkits, which should I use? I've got a fair bit of
Possible Duplicate: What data-structure should I use to create my own “BigInteger” class? Out
Possible Duplicate: Submission of form should be done when on user login Following is
Possible Duplicate: Java thread affinity I have a server and it has a 16

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.