跳至内容
菜单
此问题已终结
1 回复
3084 查看

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 

形象
丢弃
最佳答案

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.

形象
丢弃