Hi, I just want to ask how to prevent or disable the download button on attachment for a particular user in odoo 10 framework. Thank you very much in advanced.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- المشروع
- MRP
لقد تم الإبلاغ عن هذا السؤال
What I mean is the link of the file uploaded will be disabled to prevent downloading it by certain user groups.
The suggestion for hiding attachment global menu.
You need to override fields view get method of your model where you want to hide the attachment menu.
You need to apply some delete operation on that menu item when your model view loaded.
or
Go to Settings -> Technical -> Database Structure ->Models. Then you can search for "ir.attachment" and view it. In the Access Rights tab, edit the record and deselect read access for group or Your custom group .
Please another example with code in comment.
I hope This will help you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
<record model="ir.ui.menu" id="base.menu_action_attachment">
<field name="groups_id" eval="[(4,ref('base.group_sale_salesman'))]"/>
</record>
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
2
يوليو 25
|
1758 | ||
|
|
0
ديسمبر 24
|
1945 | ||
|
|
2
أكتوبر 24
|
2155 | ||
|
|
1
أغسطس 24
|
3281 | ||
|
|
2
يوليو 24
|
2554 |