Formating columns


building my first script report :slight_smile:
here is my get_columns function :

def get_columns():

  return [
      "label": _("Item Code"),
      "fieldname": "item_code",
      "fieldtype": "Link",
      "options": "Item",
      "width": 100

the result is a column containing a link showing “[item_code]:[item_name]”
how should I do to get only “[item_code]”?

If you just want to show the code without a Link you could change the fieldtype to Data


but, if I want a cliquable link with code only?

def get_columns():
    return [ _("Item")+":Link/Item:100" ]

why this produce a different result?