diff --git a/htdocs/core/modules/modProduct.class.php b/htdocs/core/modules/modProduct.class.php
index 5f663f26a80..1f7b71ce30a 100644
--- a/htdocs/core/modules/modProduct.class.php
+++ b/htdocs/core/modules/modProduct.class.php
@@ -77,6 +77,13 @@ class modProduct extends DolibarrModules
$this->const = array();
$r=0;
+ $this->const[$r][0] = "PRODUCT_CODEPRODUCT_ADDON";
+ $this->const[$r][1] = "chaine";
+ $this->const[$r][2] = "mod_codeproduct_leopard";
+ $this->const[$r][3] = 'Module to control product codes';
+ $this->const[$r][4] = 0;
+ $r++;
+
$this->const[$r][0] = "MAIN_SEARCHFORM_PRODUITSERVICE";
$this->const[$r][1] = "yesno";
$this->const[$r][2] = "1";
diff --git a/htdocs/core/modules/modSociete.class.php b/htdocs/core/modules/modSociete.class.php
index 73cd9bb303b..9cd60f23b7c 100644
--- a/htdocs/core/modules/modSociete.class.php
+++ b/htdocs/core/modules/modSociete.class.php
@@ -74,6 +74,20 @@ class modSociete extends DolibarrModules
// Constantes
$this->const = array();
$r=0;
+
+ $this->const[$r][0] = "SOCIETE_CODECLIENT_ADDON";
+ $this->const[$r][1] = "chaine";
+ $this->const[$r][2] = "mod_codeclient_leopard";
+ $this->const[$r][3] = 'Module to control third parties codes';
+ $this->const[$r][4] = 0;
+ $r++;
+
+ $this->const[$r][0] = "SOCIETE_CODECOMPTA_ADDON";
+ $this->const[$r][1] = "chaine";
+ $this->const[$r][2] = "mod_codecompta_panicum";
+ $this->const[$r][3] = 'Module to control third parties codes';
+ $this->const[$r][4] = 0;
+ $r++;
$this->const[$r][0] = "SOCIETE_FISCAL_MONTH_START";
$this->const[$r][1] = "chaine";
diff --git a/htdocs/core/modules/product/mod_codeproduct_elephant.php b/htdocs/core/modules/product/mod_codeproduct_elephant.php
index 437e9e6f4e8..3c6075f942a 100644
--- a/htdocs/core/modules/product/mod_codeproduct_elephant.php
+++ b/htdocs/core/modules/product/mod_codeproduct_elephant.php
@@ -69,11 +69,10 @@ class mod_codeproduct_elephant extends ModeleProductCode
function info($langs)
{
global $conf, $mc;
+ global $form;
$langs->load("products");
- $form = new Form($this->db);
-
$disabled = ((! empty($mc->sharings['referent']) && $mc->sharings['referent'] != $conf->entity) ? ' disabled="disabled"' : '');
$texte = $langs->trans('GenericNumRefModelDesc')."
\n";
@@ -91,7 +90,7 @@ class mod_codeproduct_elephant extends ModeleProductCode
// Parametrage du prefix customers
$texte.= '