# How can I prevent from changing or deleting field that I have placed to it already a default value

**URL:** https://discuss.tryton.org/t/how-can-i-prevent-from-changing-or-deleting-field-that-i-have-placed-to-it-already-a-default-value/4263
**Category:** User
**Created:** [May 31, 2021, 4:54am UTC](https://discuss.tryton.org/t/how-can-i-prevent-from-changing-or-deleting-field-that-i-have-placed-to-it-already-a-default-value/4263 "2021-05-31T04:54:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mimo\_Alva](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mimo\_Alva](https://discuss.tryton.org/u/mimo_Alva)
#### Post date: [May 31, 2021, 4:54am UTC](https://discuss.tryton.org/t/how-can-i-prevent-from-changing-or-deleting-field-that-i-have-placed-to-it-already-a-default-value/4263/1 "2021-05-31T04:54:40Z")

</div>

How can I prevent from changing or deleting field that I have placed to it already a default value ?

i have tried that on the Tryton interface by selecting “read access” for the field but it didn’t work.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 31, 2021, 7:07am UTC](https://discuss.tryton.org/t/how-can-i-prevent-from-changing-or-deleting-field-that-i-have-placed-to-it-already-a-default-value/4263/2 "2021-05-31T07:07:53Z")

</div>

You can make it readonly.

---

<div class="post-metadata">

### Author: ![mimo\_Alva](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mimo\_Alva](https://discuss.tryton.org/u/mimo_Alva)
#### Post date: [May 31, 2021, 11:44am UTC](https://discuss.tryton.org/t/how-can-i-prevent-from-changing-or-deleting-field-that-i-have-placed-to-it-already-a-default-value/4263/3 "2021-05-31T11:44:20Z")

</div>

i already added `readonly = true` in the features of the field (the field is an image i make it by default)[python code]

`picture = fields.Binary("Picture", readonly = True)`

but i didn’t work because at now i can delete and modify the field but me i don’t want that , i want the field still by default and prevent anyone from changing or deleting it(i mean the picture).

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 31, 2021, 12:41pm UTC](https://discuss.tryton.org/t/how-can-i-prevent-from-changing-or-deleting-field-that-i-have-placed-to-it-already-a-default-value/4263/4 "2021-05-31T12:41:59Z")

</div>

For me a binary widget with a readonly field has the buttons disabled.
