I need to make is_closed field of a task editable from the form view_task_from2
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
mai 25
|
2802 | ||
|
1
mai 22
|
1818 | ||
|
0
mai 21
|
2699 | ||
|
1
sept. 18
|
2639 | ||
|
0
mars 15
|
3507 |