Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3087 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit