In the list view, i would like show supplier names instead the id. The view is generated automatically. How can I change it?
The code i have in the renderList option is:
public function renderList()
{
$this->addRowAction('view');
// Adds an Edit button for each result
$this->addRowAction('edit');
// Adds a Delete button for each result
$this->addRowAction('delete');
$this->simple_header = false;
return parent::renderList();
}
and the field list is the next one:
$this->fields_list = array(
...
'id_product_supplier' => array('title' => $this->l('ID Supplier'), 'align' => 'center', 'class' => 'fixed-width-xs'),
...
);
If i want show the name of the supplier instead the Id, and have the option to filter for suppliers in the list...
What can i do?
Thanks!