# How to disable only part of the linking behavior in editable tree view

**URL:** https://discuss.tryton.org/t/how-to-disable-only-part-of-the-linking-behavior-in-editable-tree-view/7803
**Category:** Developer
**Created:** [September 5, 2024, 9:35pm UTC](https://discuss.tryton.org/t/how-to-disable-only-part-of-the-linking-behavior-in-editable-tree-view/7803 "2024-09-05T21:35:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alejandro](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/alejandro/32/3849_2.png) [@alejandro](https://discuss.tryton.org/u/alejandro)
#### Post date: [September 5, 2024, 9:35pm UTC](https://discuss.tryton.org/t/how-to-disable-only-part-of-the-linking-behavior-in-editable-tree-view/7803/1 "2024-09-05T21:35:01Z")

</div>

Grettings everyone.

In an editable tree view list(for example Cooper’s Seafood Hoouse in account\_move\_line in an asset), the relations attributes have two links: first, over the square icon and the second over the string itself.

Using the char widget will disable both behaviors I was wondering if it would be possible to disable only the string link and maintain the link through the icon,  
Does anyone know how to do it?.

firts: link over the string, this is unwanted  
 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/c479e165290fe8cdd01511309350c856964824d1.png)

second case: link in  
 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/c4ba0f8857d8d7ef0a157f366f4b3803096d0656.png)

Thanks,

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [September 6, 2024, 7:24am UTC](https://discuss.tryton.org/t/how-to-disable-only-part-of-the-linking-behavior-in-editable-tree-view/7803/2 "2024-09-06T07:24:19Z")

</div>

> [@alejandro](#):
>
> Using the char widget will disable both behaviors I was wondering if it would be possible to disable only the string link and maintain the link through the icon,

You can not use a char widget on a Many2One field.

But if you want to just print the name of the record, you can create a Char function fields which returns the name of the record. Then just replace the field on the view with your Char field.

Hope this helps!
