NEW option: assign default roles to "individual" third-party contacts (#30499)

* New option: assign default roles to "individual" third-party contacts

When the option to automatically create a contact for third parties of the "Individuals" type is active (THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION).

Allow to define the default roles assigned to these contacts.

Process:
1 Selection of default roles in the settings (and saving)
2 Creation of a third party of the "Individuals" type and therefore of its associated contact.
3 The contact thus created is automatically assigned the predefined roles.

* Update societe.php

* Update societe.php
This commit is contained in:
Sylvain Legrand
2024-07-31 15:32:07 +02:00
committed by GitHub
parent 871e01d955
commit 2c7dc2f28f
4 changed files with 37 additions and 0 deletions

View File

@@ -2540,3 +2540,4 @@ MainAuthenticationOidcLoginClaimDesc=OpenID Connect claim matching the Dolibarr
BlackListWords=Black list of words
AddBlackList=Add to black list
AnOwnerMustBeSetIfEmailTemplateIsPrivate=An owner must be set if the email template is set as private
ContactsDefaultRoles=For third parties of the "individual" type, a contact can be created simultaneously. Define here the roles that will be systematically assigned to this contact.

View File

@@ -2507,3 +2507,4 @@ SendToUrl=Envoyer à l'URL
WebsiteTemplateWasCopied=Le(s) modèle(s) de site Web "%s" fournis par ce module ont été enregistrés dans le répertoire des modèles de sites Web (/doctemplates/websites) et est prêt à être importé en tant que nouveau site Web.
EnabledByDefaultAtInstall=Activé par défaut lors de l'installation
VulnerableToRCEAttack=Vous êtes vulnérable aux attaques de type RCE en utilisant la fonction personnalisée dol_json_decode
ContactsDefaultRoles=Pour les les tiers de type "particulier" un contact peut-être créé simultanément. Définissez ici les rôles qui seront systématiquement attribués à ce contact.