Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
10293 Visninger

I want to make 'mrp.unbuild' this model's entire form view readonly. The following from Odoo 13 is not working in V15.

https://www.odoo.com/forum/help-1/is-there-any-way-that-i-can-make-a-entire-form-readonly-132701

Avatar
Kassér
Bedste svar

I assume your idea was not allow user to edit the form, in that case, you can try to set form view to edit="0", it will prevent user to click on "Edit" button.

Example:

Avatar
Kassér

<form string="Calendar View/Edit" edit="0">
// your code
</form>

What if we want the form to be readonly for a specific group except for activity_ids (see mail.activity in the chatter). In other words, the users who have the group in their access rights can see the fields of the form and read, create or edit or delete activities.
Thanks in advance,

Bedste svar
xpath expr="//form" position="attributes"
attribute name="readonly">True attribute
xpath
Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
apr. 22
3268
1
mar. 18
6500
2
maj 25
3377
0
jun. 24
1058
2
mar. 24
2252