diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php
index 64204e327b7..983e0089fe5 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -460,8 +460,10 @@ if ($action == 'create') {
print '';
}
+ print '
';
$morehtmlref .= $langs->trans("LocationSummary").' : '.$object->lieu;
+
+ // Project
+ if (!empty($conf->projet->enabled)) {
+ $langs->load("projects");
+ $morehtmlref .= '
'.img_picto('', 'project').' '.$langs->trans('Project').' ';
+ if ($usercancreate && 1 == 2) {
+ if ($action != 'classify') {
+ $morehtmlref .= '
'.img_edit($langs->transnoentitiesnoconv('SetProject')).' : ';
+ }
+ if ($action == 'classify') {
+ $projectid = $object->fk_project;
+ $morehtmlref .= '
';
+ } else {
+ $morehtmlref .= $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none', 0, 0, 0, 1);
+ }
+ } else {
+ if (!empty($object->fk_project)) {
+ $proj = new Project($db);
+ $proj->fetch($object->fk_project);
+ $morehtmlref .= '
';
+ $morehtmlref .= $proj->ref;
+ $morehtmlref .= '';
+ } else {
+ $morehtmlref .= '';
+ }
+ }
+ }
$morehtmlref .= '
';
$shownav = 1;