Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
9868 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää

<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,

Paras vastaus
xpath expr="//form" position="attributes"
attribute name="readonly">True attribute
xpath
Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
huhtik. 22
2900
1
maalisk. 18
6294
2
toukok. 25
2997
0
kesäk. 24
943
2
maalisk. 24
2056