Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1805 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
мая 25
2768
1
мая 22
1806
0
мая 21
2691
1
сент. 18
2622
0
мар. 15
3496