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

HI all, If I understand Odoo's structure correctly, the buttons "Edit" and "Create" shows on the left top side by default. But now what I need is to make whole form view readonly, which means unable to do actions such as edit or create a new record (those buttons are not needed). Even I put readonly attribute to every field, those button are still there.

Is it possible to achieve my requirements? If so, what should can I do? 

And also, what if I want those "Edit" and "Create" buttons are depends on the user (different user group)

Any hint will be useful! Thanks

الصورة الرمزية
إهمال
أفضل إجابة

You can try to add security rule or do it through UI, by disabling rights to create and edit. You should only grant read access right.

Goto -> settings -> groups

الصورة الرمزية
إهمال
الكاتب

Hi thx for quick reply. As you said, I tried to set up via UI, I went to "Record Rules" but I don't know how to set up the domain filter, Can you explain more about it? For example, my form view's record id is "make_readonly_form_view"

المنشورات ذات الصلة الردود أدوات العرض النشاط
V17 Tree, Form view تم الحل
1
مارس 25
1718
1
أكتوبر 24
5293
0
سبتمبر 24
3541
2
يونيو 24
11265
0
أبريل 22
3769