Merge pull request #13917 from atm-quentin/NEW_showfullarbo_in_getnomurl
NEW conf to allow show full arbo in warehouse getnomurl
This commit is contained in:
commit
c2b2e17b58
@ -458,7 +458,17 @@ if ($conf->use_javascript_ajax) {
|
|||||||
}
|
}
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
print '<tr class="oddeven">';
|
||||||
|
print '<td>'.$langs->trans("AlwaysShowFullArbo").'</td>';
|
||||||
|
print '<td class="right">';
|
||||||
|
if ($conf->use_javascript_ajax) {
|
||||||
|
print ajax_constantonoff('STOCK_ALWAYS_SHOW_FULL_ARBO');
|
||||||
|
} else {
|
||||||
|
$arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
|
||||||
|
print $form->selectarray("STOCK_ALWAYS_SHOW_FULL_ARBO", $arrval, $conf->global->STOCK_ALWAYS_SHOW_FULL_ARBO);
|
||||||
|
}
|
||||||
|
print "</td>\n";
|
||||||
|
print "</tr>\n";
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -218,3 +218,4 @@ InventoryForASpecificWarehouse=Inventory for a specific warehouse
|
|||||||
InventoryForASpecificProduct=Inventory for a specific product
|
InventoryForASpecificProduct=Inventory for a specific product
|
||||||
StockIsRequiredToChooseWhichLotToUse=Stock is required to choose which lot to use
|
StockIsRequiredToChooseWhichLotToUse=Stock is required to choose which lot to use
|
||||||
ForceTo=Force to
|
ForceTo=Force to
|
||||||
|
AlwaysShowFullArbo=Display full tree of warehouse on popup of warehouse links (Warning: This may decrease dramatically performances)
|
||||||
|
|||||||
@ -218,3 +218,4 @@ InventoryForASpecificWarehouse=Inventaire pour un entrepôt spécifique
|
|||||||
InventoryForASpecificProduct=Inventaire pour un produit spécifique
|
InventoryForASpecificProduct=Inventaire pour un produit spécifique
|
||||||
StockIsRequiredToChooseWhichLotToUse=Le module Stock est requis pour choisir une lot
|
StockIsRequiredToChooseWhichLotToUse=Le module Stock est requis pour choisir une lot
|
||||||
ForceTo=Forcer à
|
ForceTo=Forcer à
|
||||||
|
AlwaysShowFullArbo=Toujours afficher l'arborescence complète dans le lien vers la fiche
|
||||||
@ -745,7 +745,7 @@ class Entrepot extends CommonObject
|
|||||||
|
|
||||||
$result .= $linkstart;
|
$result .= $linkstart;
|
||||||
if ($withpicto) $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip ? 0 : 1);
|
if ($withpicto) $result .= img_object(($notooltip ? '' : $label), ($this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip ? 0 : 1);
|
||||||
if ($withpicto != 2) $result .= ($showfullpath ? $this->get_full_arbo() : (empty($this->label) ? $this->libelle : $this->label));
|
if ($withpicto != 2) $result .= (($showfullpath || !empty($conf->global->STOCK_ALWAYS_SHOW_FULL_ARBO)) ? $this->get_full_arbo() : (empty($this->label)?$this->libelle:$this->label));
|
||||||
$result .= $linkend;
|
$result .= $linkend;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user