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

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

second case: link in
image

Thanks,

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!