32 global $langs, $conf, $user;
37 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/card.php?id='.$object->id;
38 $head[$h][1] = $langs->trans(
"Warehouse");
39 $head[$h][2] =
'card';
42 if (!empty($user->rights->stock->mouvement->lire))
44 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/movement_list.php?id='.$object->id;
45 $head[$h][1] = $langs->trans(
"StockMovements");
46 $head[$h][2] =
'movements';
75 $head[$h][0] = DOL_URL_ROOT.
'/product/stock/info.php?id='.$object->id;
76 $head[$h][1] = $langs->trans(
"Info");
77 $head[$h][2] =
'info';
92 global $langs, $conf, $user;
97 $head[$h][0] = DOL_URL_ROOT.
'/admin/stock.php';
98 $head[$h][1] = $langs->trans(
"Miscellaneous");
99 $head[$h][2] =
'general';
108 $head[$h][0] = DOL_URL_ROOT.
'/product/admin/stock_extrafields.php';
109 $head[$h][1] = $langs->trans(
"ExtraFields");
110 $head[$h][2] =
'attributes';
stock_admin_prepare_head()
Return array head with list of tabs to view object informations.
stock_prepare_head($object)
Prepare array with list of tabs.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode= 'add')
Complete or removed entries into a head array (used to build tabs).