Hallo
I need to make some calendar.event records read-only, according to values in a custom field.
Is it possible to do that without modifying the forms?
Can I override showing the "Edit" button?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hallo
I need to make some calendar.event records read-only, according to values in a custom field.
Is it possible to do that without modifying the forms?
Can I override showing the "Edit" button?
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
1
thg 10 24
|
2458 | ||
|
|
0
thg 5 24
|
1562 | ||
|
|
0
thg 9 22
|
1909 | ||
|
|
2
thg 8 22
|
3858 | ||
|
Make field readonly based on group
Đã xử lý
|
|
9
thg 7 21
|
62913 |
You can set the access rights for that model, by giving only the read access to users right? Otherwise you need to inherit the view in your custom module and using 'attrs' attribute, set the required fields as readonly
Thank you Akhil. I was trying to avoid marking each field with "attrs" since there are many; I'm trying overriding fields_view_get but the custom fields are not accessible from within the method.
Hi,, You want to make a field read-only and its value depends on another field,, am I correct???
Hi Baiju, I need to make the WHOLE record readonly, according to a value in one of the fields. And I would prefer to avoid overriding each edit form.
any updates? I am looking solution for the same case.