Fix bad link
This commit is contained in:
parent
015bc9ebca
commit
e2e2e69379
@ -1262,7 +1262,7 @@ if ($action == 'create') {
|
|||||||
if ($user->hasRight($origin, 'read')) {
|
if ($user->hasRight($origin, 'read')) {
|
||||||
$hasPermissionOnLinkedObject = 1;
|
$hasPermissionOnLinkedObject = 1;
|
||||||
}
|
}
|
||||||
//var_dump('origin='.$origin.' originid='.$originid.' $hasPermissionOnLinkedObject='.$hasPermissionOnLinkedObject);
|
//var_dump('origin='.$origin.' originid='.$originid.' hasPermissionOnLinkedObject='.$hasPermissionOnLinkedObject);
|
||||||
|
|
||||||
if (! in_array($origin, array('societe', 'project', 'task', 'user'))) {
|
if (! in_array($origin, array('societe', 'project', 'task', 'user'))) {
|
||||||
// We do not use link for object that already contains a hard coded field to make links with agenda events
|
// We do not use link for object that already contains a hard coded field to make links with agenda events
|
||||||
|
|||||||
@ -464,7 +464,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
|
|
||||||
$MAXEVENT = 10;
|
$MAXEVENT = 10;
|
||||||
|
|
||||||
$morehtmlcenter = dolGetButtonTitle($langs->trans('SeeAll'), '', 'fa fa-list-alt imgforviewmode', DOL_URL_ROOT.'/product/inventory/inventory_info.php?id='.$object->id);
|
//$morehtmlcenter = dolGetButtonTitle($langs->trans('SeeAll'), '', 'fa fa-list-alt imgforviewmode', DOL_URL_ROOT.'/product/inventory/inventory_info.php?id='.$object->id);
|
||||||
|
$morehtmlcenter = '';
|
||||||
|
|
||||||
// List of actions on element
|
// List of actions on element
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php';
|
||||||
|
|||||||
@ -687,6 +687,7 @@ class User extends CommonObject
|
|||||||
'shipping' => 'expedition',
|
'shipping' => 'expedition',
|
||||||
'task' => 'task@projet',
|
'task' => 'task@projet',
|
||||||
'fichinter' => 'ficheinter',
|
'fichinter' => 'ficheinter',
|
||||||
|
'inventory' => 'stock',
|
||||||
'invoice' => 'facture',
|
'invoice' => 'facture',
|
||||||
'invoice_supplier' => 'fournisseur',
|
'invoice_supplier' => 'fournisseur',
|
||||||
'knowledgerecord' => 'knowledgerecord@knowledgemanagement',
|
'knowledgerecord' => 'knowledgerecord@knowledgemanagement',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user