Hello guys. I have boolean validation field in a module called billing_notice. I only want some users to modify this field.
Let's say, I have user1 user2 and user3
I only want user1 to have the power to modify this field. How can I do this restriction with python code or xml code? If you can provide some example I would love it.
Thanks!!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi,
You can create a new user group named Edit Validation field, and later you can add the users who need to edit the field to this group.
Now in the view level, you have to make this field readonly for all users initially, can be done by settings readonly="1" in the main view.
Now in order to edit for the user in this group, create an inherited view, set group for this view and remove readonly attribute from the field.
Similar use case: https://www.youtube.com/watch?v=Fsp6lAPHz08
Thanks
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
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 2 21
|
7164 | ||
How to know menu parent id?
Đã xử lý
|
|
1
thg 1 16
|
6617 | |
|
1
thg 11 21
|
11130 | ||
Foreach in qweb report xml Odoo 8
Đã xử lý
|
|
4
thg 8 20
|
11737 | |
Call Python function from JavaScript
Đã xử lý
|
|
6
thg 1 19
|
25914 |