I need to make is_closed field of a task editable from the form view_task_from2
Dette spørgsmål er blevet anmeldt
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
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
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
2
maj 25
|
4656 | ||
|
|
1
maj 22
|
3559 | ||
|
|
0
maj 21
|
3962 | ||
|
|
1
sep. 18
|
4090 | ||
|
|
0
mar. 15
|
5119 |