From da284cda8c285a9a81688a7e07ededbb5d9a4381 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 19 Feb 2016 19:20:21 +0100 Subject: [PATCH] Add category Supplier Relationship Manager --- htdocs/admin/modules.php | 3 ++- htdocs/core/modules/modFournisseur.class.php | 4 +++- htdocs/core/modules/modIncoterm.class.php | 2 +- htdocs/core/modules/modSupplierProposal.class.php | 2 +- htdocs/langs/en_US/admin.lang | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 21458e410ae..4bb41747ea9 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -47,7 +47,8 @@ $specialtostring=array(0=>'common', 1=>'interfaces', 2=>'other', 3=>'functional' $familyinfo=array( 'hr'=>array('position'=>'001', 'label'=>$langs->trans("ModuleFamilyHr")), 'crm'=>array('position'=>'006', 'label'=>$langs->trans("ModuleFamilyCrm")), - 'financial'=>array('position'=>'009', 'label'=>$langs->trans("ModuleFamilyFinancial")), + 'srm'=>array('position'=>'007', 'label'=>$langs->trans("ModuleFamilySrm")), + 'financial'=>array('position'=>'009', 'label'=>$langs->trans("ModuleFamilyFinancial")), 'products'=>array('position'=>'012', 'label'=>$langs->trans("ModuleFamilyProducts")), 'projects'=>array('position'=>'015', 'label'=>$langs->trans("ModuleFamilyProjects")), 'ecm'=>array('position'=>'018', 'label'=>$langs->trans("ModuleFamilyECM")), diff --git a/htdocs/core/modules/modFournisseur.class.php b/htdocs/core/modules/modFournisseur.class.php index 1ef3a2bb573..3cf63b6cfb9 100644 --- a/htdocs/core/modules/modFournisseur.class.php +++ b/htdocs/core/modules/modFournisseur.class.php @@ -47,7 +47,9 @@ class modFournisseur extends DolibarrModules $this->db = $db; $this->numero = 40; - $this->family = "products"; + // Family can be 'crm','financial','hr','projects','product','ecm','technic','other' + // It is used to group modules in module setup page + $this->family = "srm"; $this->module_position = 10; // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) $this->name = preg_replace('/^mod/i','',get_class($this)); diff --git a/htdocs/core/modules/modIncoterm.class.php b/htdocs/core/modules/modIncoterm.class.php index cae4f9ec28f..d7cf118e890 100644 --- a/htdocs/core/modules/modIncoterm.class.php +++ b/htdocs/core/modules/modIncoterm.class.php @@ -51,7 +51,7 @@ class modIncoterm extends DolibarrModules $this->rights_class = 'incoterm'; // Family can be 'crm','financial','hr','projects','products','ecm','technic','other' - $this->family = "products"; + $this->family = "srm"; $this->name = preg_replace('/^mod/i','',get_class($this)); $this->description = "Incoterm management"; $this->version = 'dolibarr'; diff --git a/htdocs/core/modules/modSupplierProposal.class.php b/htdocs/core/modules/modSupplierProposal.class.php index f38ce9b7f7e..9c249da4dc6 100644 --- a/htdocs/core/modules/modSupplierProposal.class.php +++ b/htdocs/core/modules/modSupplierProposal.class.php @@ -49,7 +49,7 @@ class modSupplierProposal extends DolibarrModules $this->db = $db; $this->numero = 1120; - $this->family = "products"; + $this->family = "srm"; $this->name = preg_replace('/^mod/i','',get_class($this)); $this->description = "supplier_proposalDESC"; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index d7ba4a29678..814279635e8 100755 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -282,6 +282,7 @@ ModuleSetup=Module setup ModulesSetup=Modules setup ModuleFamilyBase=System ModuleFamilyCrm=Customer Relation Management (CRM) +ModuleFamilySrm=Supplier Relation Management (SRM) ModuleFamilyProducts=Products Management (PM) ModuleFamilyHr=Human Resource Management (HR) ModuleFamilyProjects=Projects/Collaborative work