http://localhost:8012/web#action=6&model=project.project&view_type=kanban&menu_id=89
action= 6 displays all the windows action to user, i want to restrict such access to the users.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
http://localhost:8012/web#action=6&model=project.project&view_type=kanban&menu_id=89
action= 6 displays all the windows action to user, i want to restrict such access to the users.
We made a module to secure data access from URL. This is the link to download it:
https://apps.odoo.com/apps/modules/12.0/url_access_restriction/
In your case, Follow this steps:
1. Add Admin Group to the action as follow:
<record id="base.ir_action_window" model="ir.actions.act_window">
<field name="groups_id" eval="[(4,ref('base.group_erp_manager'))]"/>
</record>
<record id="base.action_server_action" model="ir.actions.server">
<field name="groups_id" eval="[(4,ref('base.group_erp_manager'))]"/>
</record>
2. Install the module Url Access Restriction (https://apps.odoo.com/apps/modules/12.0/url_access_restriction)
Hope it help you
Thank you i will update after testing
@Naresh Did this work for you? Do you have to manually block each url view or a general one?
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 | |
---|---|---|---|---|
|
2
thg 8 24
|
1990 | ||
|
1
thg 11 15
|
4950 | ||
|
2
thg 2 24
|
1181 | ||
Struggling with ir.model.access.csv
Đã xử lý
|
|
2
thg 9 21
|
10554 | |
|
2
thg 12 19
|
4562 |
Hope this will helps: https://learnopenerp.blogspot.com/2021/09/restrict-user-to-access-differnt-records-by-changing-id-in-url-odoo.html