diff --git a/htdocs/product/canvas/default/product.default.class.php b/htdocs/product/canvas/default/product.default.class.php index 8b78b94326e..5ea671a7a67 100644 --- a/htdocs/product/canvas/default/product.default.class.php +++ b/htdocs/product/canvas/default/product.default.class.php @@ -121,11 +121,15 @@ class ProductDefault extends Product $obj = $this->db->fetch_object($resql); $datas["id"] = $obj->rowid; - $datas["ref"] = $obj->ref; $datas["label"] = $obj->label; $datas["barcode"] = $obj->barcode; $datas["statut"] = $obj->statut; $datas["datem"] = dol_print_date($this->db->jdate($obj->datem),'day'); + + $this->id = $obj->rowid; + $this->ref = $obj->ref; + $this->type = $obj->fk_product_type; + $datas["ref"] = $this->getNomUrl(1,'',24); array_push($this->list_datas,$datas); diff --git a/htdocs/product/canvas/default/templates/liste.tpl b/htdocs/product/canvas/default/templates/liste.tpl index e3d64b6ce33..ceda831f9cd 100644 --- a/htdocs/product/canvas/default/templates/liste.tpl +++ b/htdocs/product/canvas/default/templates/liste.tpl @@ -35,7 +35,7 @@
| Référence + | {$langs->trans('Ref')}
@@ -44,7 +44,7 @@
|
- Libellé + | {$langs->trans('Label')}
@@ -53,7 +53,7 @@
|
- Code barre + | {$langs->trans('BarCode')}
@@ -62,10 +62,10 @@
|
- Date de modification | -Prix de vente | -Stock | -Etat | +{$langs->trans('DateModification')} | +{$langs->trans('SellingPrice')} | +{$langs->trans('Stock')} | +{$langs->trans('Status')} | - - + + | {section name=mysec loop=$datas} {strip}
| {$datas[mysec].ref} | +{$datas[mysec].ref} | {$datas[mysec].label} | {$datas[mysec].barcode} | {$datas[mysec].datem} |