Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3241 มุมมอง

Hi,

I have created two group one for user and one for manager I want to restrict user to edit form only in draft state. but the user can view it in all the state and the only manager can edit the form once it is in an approved state.

Anyone could help me achieve this.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Create Record Rules using domain

1. User has Edit access only where

[('state', '=', 'draft')]​

and read access for all states

[(1,'=',1)] 

2. Manager has full access for Edit

[(1,'=',1)] 

More information on Record Rules

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Error in odoo12 community แก้ไขแล้ว
1
มี.ค. 19
7895
0
พ.ค. 20
1769
5
ก.พ. 20
6570
Manufacturing automation in Odoo 12 แก้ไขแล้ว
1
พ.ย. 19
2429
Configurable Product Kits แก้ไขแล้ว
1
พ.ย. 19
4781