تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
7742 أدوات العرض

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?

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 24
1969
1
نوفمبر 15
4940
2
فبراير 24
1181
2
سبتمبر 21
10545
2
ديسمبر 19
4547