Merge remote-tracking branch 'origin/3.5' into develop
Conflicts: htdocs/fourn/commande/fiche.php htdocs/langs/es_ES/admin.lang htdocs/langs/es_ES/languages.lang htdocs/langs/es_ES/main.lang
This commit is contained in:
commit
9e5e74cb58
@ -2056,7 +2056,7 @@ class Propal extends CommonObject
|
|||||||
{
|
{
|
||||||
// We remove directory
|
// We remove directory
|
||||||
$ref = dol_sanitizeFileName($this->ref);
|
$ref = dol_sanitizeFileName($this->ref);
|
||||||
if ($conf->propal->dir_output)
|
if ($conf->propal->dir_output && !empty($this->ref))
|
||||||
{
|
{
|
||||||
$dir = $conf->propal->dir_output . "/" . $ref ;
|
$dir = $conf->propal->dir_output . "/" . $ref ;
|
||||||
$file = $dir . "/" . $ref . ".pdf";
|
$file = $dir . "/" . $ref . ".pdf";
|
||||||
|
|||||||
@ -2457,7 +2457,7 @@ class Commande extends CommonOrder
|
|||||||
|
|
||||||
// On efface le repertoire de pdf provisoire
|
// On efface le repertoire de pdf provisoire
|
||||||
$comref = dol_sanitizeFileName($this->ref);
|
$comref = dol_sanitizeFileName($this->ref);
|
||||||
if ($conf->commande->dir_output)
|
if ($conf->commande->dir_output && !empty($this->ref))
|
||||||
{
|
{
|
||||||
$dir = $conf->commande->dir_output . "/" . $comref ;
|
$dir = $conf->commande->dir_output . "/" . $comref ;
|
||||||
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
|
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
|
||||||
|
|||||||
@ -1323,7 +1323,7 @@ class Facture extends CommonInvoice
|
|||||||
{
|
{
|
||||||
// On efface le repertoire de pdf provisoire
|
// On efface le repertoire de pdf provisoire
|
||||||
$ref = dol_sanitizeFileName($this->ref);
|
$ref = dol_sanitizeFileName($this->ref);
|
||||||
if ($conf->facture->dir_output)
|
if ($conf->facture->dir_output && !empty($this->ref))
|
||||||
{
|
{
|
||||||
$dir = $conf->facture->dir_output . "/" . $ref;
|
$dir = $conf->facture->dir_output . "/" . $ref;
|
||||||
$file = $conf->facture->dir_output . "/" . $ref . "/" . $ref . ".pdf";
|
$file = $conf->facture->dir_output . "/" . $ref . "/" . $ref . ".pdf";
|
||||||
|
|||||||
@ -49,8 +49,12 @@ function tax_prepare_head($object)
|
|||||||
// $this->tabs = array('entity:-tabname); to remove a tab
|
// $this->tabs = array('entity:-tabname); to remove a tab
|
||||||
complete_head_from_modules($conf,$langs,$object,$head,$h,'tax');
|
complete_head_from_modules($conf,$langs,$object,$head,$h,'tax');
|
||||||
|
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
$upload_dir = $conf->tax->dir_output . "/" . dol_sanitizeFileName($object->ref);
|
||||||
|
$nbFiles = count(dol_dir_list($upload_dir,'files'));
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/compta/sociales/document.php?id='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/compta/sociales/document.php?id='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("Documents");
|
$head[$h][1] = $langs->trans("Documents");
|
||||||
|
if($nbFiles > 0) $head[$h][1].= ' ('.$nbFiles.')';
|
||||||
$head[$h][2] = 'documents';
|
$head[$h][2] = 'documents';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
|||||||
@ -168,6 +168,15 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest)
|
|||||||
{
|
{
|
||||||
dol_syslog("functions_ldap::check_user_password_ldap Sync user found id=".$user->id);
|
dol_syslog("functions_ldap::check_user_password_ldap Sync user found id=".$user->id);
|
||||||
// On verifie si le login a change et on met a jour les attributs dolibarr
|
// On verifie si le login a change et on met a jour les attributs dolibarr
|
||||||
|
|
||||||
|
if ($conf->multicompany->enabled) {
|
||||||
|
global $mc;
|
||||||
|
|
||||||
|
$ret=$mc->checkRight($user->id, $entitytotest);
|
||||||
|
if ($ret < 0) $login=false; // provoque l'echec de l'identification
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($user->login != $ldap->login && $ldap->login)
|
if ($user->login != $ldap->login && $ldap->login)
|
||||||
{
|
{
|
||||||
$user->login = $ldap->login;
|
$user->login = $ldap->login;
|
||||||
|
|||||||
@ -702,11 +702,10 @@ elseif ($action == 'update_extras')
|
|||||||
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
|
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
|
||||||
$ret = $extrafields->setOptionalsFromPost($extralabels,$object);
|
$ret = $extrafields->setOptionalsFromPost($extralabels,$object);
|
||||||
|
|
||||||
if($ret < 0)
|
if($ret < 0) $error++;
|
||||||
$error++;
|
|
||||||
|
|
||||||
if(!$error) {
|
|
||||||
|
|
||||||
|
if (!$error)
|
||||||
|
{
|
||||||
// Actions on extra fields (by external module or standard code)
|
// Actions on extra fields (by external module or standard code)
|
||||||
// FIXME le hook fait double emploi avec le trigger !!
|
// FIXME le hook fait double emploi avec le trigger !!
|
||||||
$hookmanager->initHooks(array('supplierorderdao'));
|
$hookmanager->initHooks(array('supplierorderdao'));
|
||||||
@ -732,7 +731,7 @@ elseif ($action == 'update_extras')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$action = 'edit_extras';
|
$action = 'edit_extras';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1408,7 +1407,6 @@ elseif (! empty($object->id))
|
|||||||
// Other attributes
|
// Other attributes
|
||||||
$parameters=array('socid'=>$socid, 'colspan' => ' colspan="3"');
|
$parameters=array('socid'=>$socid, 'colspan' => ' colspan="3"');
|
||||||
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
if (empty($reshook) && ! empty($extrafields->attribute_label))
|
if (empty($reshook) && ! empty($extrafields->attribute_label))
|
||||||
{
|
{
|
||||||
if ($action == 'edit_extras')
|
if ($action == 'edit_extras')
|
||||||
@ -1455,7 +1453,8 @@ elseif (! empty($object->id))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count($extrafields->attribute_label) > 0) {
|
if(count($extrafields->attribute_label) > 0)
|
||||||
|
{
|
||||||
if ($action == 'edit_extras' && $user->rights->fournisseur->commande->creer)
|
if ($action == 'edit_extras' && $user->rights->fournisseur->commande->creer)
|
||||||
{
|
{
|
||||||
print '<tr><td></td><td colspan="5">';
|
print '<tr><td></td><td colspan="5">';
|
||||||
@ -1463,7 +1462,8 @@ elseif (! empty($object->id))
|
|||||||
print '</form>';
|
print '</form>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
if ($object->statut == 0 && $user->rights->fournisseur->commande->creer)
|
if ($object->statut == 0 && $user->rights->fournisseur->commande->creer)
|
||||||
{
|
{
|
||||||
print '<tr><td></td><td><a href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=edit_extras">'.img_picto('','edit').' '.$langs->trans('Modify').'</a></td></tr>';
|
print '<tr><td></td><td><a href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=edit_extras">'.img_picto('','edit').' '.$langs->trans('Modify').'</a></td></tr>';
|
||||||
|
|||||||
@ -1010,7 +1010,6 @@ AddRefInList=Mostrar el código de cliente/proveedor en los listados (lista desp
|
|||||||
FieldEdition=Edición del campo %s
|
FieldEdition=Edición del campo %s
|
||||||
FixTZ=Ajueste TimeZone
|
FixTZ=Ajueste TimeZone
|
||||||
FillThisOnlyIfRequired=Ejemplo: +2 (Rellene únicamente si se experimentan problemas de offset de zona horaria)
|
FillThisOnlyIfRequired=Ejemplo: +2 (Rellene únicamente si se experimentan problemas de offset de zona horaria)
|
||||||
|
|
||||||
##### Module password generation
|
##### Module password generation
|
||||||
PasswordGenerationStandard=Devuelve una contraseña generada por el algoritmo interno Dolibarr: 8 caracteres, números y caracteres en minúsculas mezcladas.
|
PasswordGenerationStandard=Devuelve una contraseña generada por el algoritmo interno Dolibarr: 8 caracteres, números y caracteres en minúsculas mezcladas.
|
||||||
PasswordGenerationNone=No ofrece contraseñas. La contraseña se introduce manualmente.
|
PasswordGenerationNone=No ofrece contraseñas. La contraseña se introduce manualmente.
|
||||||
|
|||||||
@ -666,7 +666,6 @@ SaveUploadedFileWithMask=Guardar el archivo con el nombre "<strong>%s</strong>"
|
|||||||
OriginFileName=Nombre del archivo origen
|
OriginFileName=Nombre del archivo origen
|
||||||
SetDemandReason=Definir origen
|
SetDemandReason=Definir origen
|
||||||
ViewPrivateNote=Ver notas
|
ViewPrivateNote=Ver notas
|
||||||
|
|
||||||
# Week day
|
# Week day
|
||||||
Monday=Lunes
|
Monday=Lunes
|
||||||
Tuesday=Martes
|
Tuesday=Martes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user