Hi,
It is possible to make a read only view of the opened maintenance requests of a specific maintenance team?
I want that the users can see their requests but can't modify the stage of then.
Thnks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
It is possible to make a read only view of the opened maintenance requests of a specific maintenance team?
I want that the users can see their requests but can't modify the stage of then.
Thnks
Hi Ibrahim,
is possible to apply that view to a specific group of users?
for example, create a user group called “read only view”.
another inquire is... can i display that view in a specific link of the menu, like “Maintenance Requests Status”?
Thnks a lot!
Hi Luis,
1- Declare a boolean field :
fields_readonly = fields.Boolean(compute='compute_fields_readonly')
2- then if your function:
@api.multi
for record in self:
if user.has_group('module.your_maintenance_team_group'):
record.fields_readonly = True
3- in your view, add boolean to view with invisible="1" and attrs readonly if the boolean is true.
Hope this helps.
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
มี.ค. 19
|
7478 | ||
|
2
ก.พ. 25
|
1597 | ||
|
1
ต.ค. 24
|
4147 | ||
|
2
ม.ค. 24
|
1820 | ||
|
2
ธ.ค. 23
|
1755 |