# Try to make a tree editable gone wrong

**URL:** https://discuss.tryton.org/t/try-to-make-a-tree-editable-gone-wrong/8491
**Category:** Developer
**Created:** [April 16, 2025, 5:21pm UTC](https://discuss.tryton.org/t/try-to-make-a-tree-editable-gone-wrong/8491 "2025-04-16T17:21:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bromoapp](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bromoapp](https://discuss.tryton.org/u/bromoapp)
#### Post date: [April 16, 2025, 5:21pm UTC](https://discuss.tryton.org/t/try-to-make-a-tree-editable-gone-wrong/8491/1 "2025-04-16T17:21:03Z")

</div>

I want to make my list, can be editable, so I asked Gwen AI, and suggest me to make my tree editable as below

```auto
<tree editable="bottom">
   <field name="timesheet"/>
   <field name="date"/>
   <field name="project"/>
   <field name="so_no"/>
   <field name="task"/>
   <field name="detail"/>
   <field name="time_in"/>
   <field name="time_out"/>
   <field name="total"/>
</tree>

```

and it also suggest me to execute:

```auto
trytond-admin -u module_name --activate-dependencies

```

Now I got error:

```auto
invalid literal for int() with base 10: 'bottom'

```

And I asked Gwen AI again.. and it suggests me to check the trytond version.. and it is 7.4.9

According to Gwen AI .. its a bug… can you guys confirm this?  
How to revert back to before after I activate dependecies? I really need to present this tomorrow morning

Thank you in advance

Regards  
Bromo

---

<div class="post-metadata">

### Author: ![bbaklaro](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/e99b99/32.png) [@bbaklaro](https://discuss.tryton.org/u/bbaklaro)
#### Post date: [April 16, 2025, 9:17pm UTC](https://discuss.tryton.org/t/try-to-make-a-tree-editable-gone-wrong/8491/2 "2025-04-16T21:17:14Z")

</div>

Dear bromoapp,  
the editable attribute is a boolean, so set it as 1.  
It used to work as editable top and bottom, but has since been removed.

```auto
<tree editable="1">

```

I beleive this is since version 5.6

> [@Tryton Release 5.6](https://discuss.tryton.org/t/tryton-release-5-6/2634/1):
>
> The `editable` attribute of the `tree` view is now a boolean. This allows the client to choose the best position to use when adding a new record by looking at the default order the server sent it.

> **[Views — Tryton server](https://docs.tryton.org/latest/server/topics/views/index.html#id2)**

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [April 17, 2025, 9:17pm UTC](https://discuss.tryton.org/t/try-to-make-a-tree-editable-gone-wrong/8491/3 "2025-04-17T21:17:49Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
