Skip to Content
Menu
This question has been flagged
1 Reply
2717 Views

Hi i want to add two groups to edit project.tak   :

1-the first can read and write records if condition1 and only read records if not condition1

2-the second can read and write if not conditition1 and only read if condition1

how i can do this if with ir_rule 

Avatar
Discard
Best Answer

Hi,

Add an Access Controls (ir.model.access) that give users the ability to read record (1,0,0,0).

After that, create a rule for each group based on your conditions and check "Apply for Write".

  • Group 1:
    domain = condition 1. Apply for Write, Apply for read.

  • Group 2:
    domain = not condition 1. Apply for Write, Apply for read.

Best regards.

Avatar
Discard