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

I need to make is_closed field of a task  editable from the form view_task_from2

Avatar
Hylkää
Paras vastaus

Hi,

To make an existing field in the model editable, you can inherit the corresponding view of that model in which the field exists in your custom module, and Xpath the field by adding the position as attributes, and making read-only as false

eg:

<field name="is_closed" position="attributes">
                    <attribute name="readonly">0</attribute>
 </field>


Hope it helps

Avatar
Hylkää
Paras vastaus

Hi,
You can make a field editable using the studio application or from the code.

* Open the form view containing the field
* Enable studio
* select the field and change the readonly to False

Same can be done from code side also, just inherit the view and set readonly as False

Inherit And Change Existing Field Properties In Odoo


Thanks

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
toukok. 25
2094
1
toukok. 22
1127
0
toukok. 21
2199
1
syysk. 18
2060
0
maalisk. 15
2971