Fix correct id of core modules

This commit is contained in:
Laurent Destailleur 2015-05-04 12:02:09 +02:00
parent ac4bd7d441
commit a18e3c7813
5 changed files with 15 additions and 15 deletions

View File

@ -46,7 +46,7 @@ class modIncoterm extends DolibarrModules
// Id for module (must be unique). // Id for module (must be unique).
// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id). // Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
$this->numero = 210009; $this->numero = 62000;
// Key text used to identify module (for permissions, menus, etc...) // Key text used to identify module (for permissions, menus, etc...)
$this->rights_class = 'incoterm'; $this->rights_class = 'incoterm';

View File

@ -44,7 +44,7 @@ class modPrinting extends DolibarrModules
function __construct($db) function __construct($db)
{ {
$this->db = $db ; $this->db = $db ;
$this->numero = 112000; $this->numero = 64000;
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other' // Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
// It is used to group modules in module setup page // It is used to group modules in module setup page
$this->family = "other"; $this->family = "other";
@ -94,7 +94,7 @@ class modPrinting extends DolibarrModules
// $this->rights[$r][5] Niveau 2 pour nommer permission dans code // $this->rights[$r][5] Niveau 2 pour nommer permission dans code
$r++; $r++;
$this->rights[$r][0] = 112001; $this->rights[$r][0] = 64001;
$this->rights[$r][1] = 'Printing'; $this->rights[$r][1] = 'Printing';
$this->rights[$r][2] = 'r'; $this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1; $this->rights[$r][3] = 1;

View File

@ -45,7 +45,7 @@ class modResource extends DolibarrModules
// Id for module (must be unique). // Id for module (must be unique).
// Use a free id here // Use a free id here
// (See in Home -> System information -> Dolibarr for list of used modules id). // (See in Home -> System information -> Dolibarr for list of used modules id).
$this->numero = 110111; $this->numero = 63000;
// Key text used to identify module (for permissions, menus, etc...) // Key text used to identify module (for permissions, menus, etc...)
$this->rights_class = 'resource'; $this->rights_class = 'resource';
@ -114,7 +114,7 @@ class modResource extends DolibarrModules
$this->requiredby = array('modPlace'); $this->requiredby = array('modPlace');
// Minimum version of PHP required by module // Minimum version of PHP required by module
$this->phpmin = array(5, 3); $this->phpmin = array(5, 3);
$this->langfiles = array("resource@resource"); // langfiles@resource $this->langfiles = array("resource@resource"); // langfiles@resource
// Constants // Constants
// List of particular constants to add when module is enabled // List of particular constants to add when module is enabled
@ -172,25 +172,25 @@ class modResource extends DolibarrModules
$this->rights = array(); // Permission array used by this module $this->rights = array(); // Permission array used by this module
$r = 0; $r = 0;
$this->rights[$r][0] = 1101201; $this->rights[$r][0] = 63001;
$this->rights[$r][1] = 'See resources'; $this->rights[$r][1] = 'Read resources';
$this->rights[$r][3] = 0; $this->rights[$r][3] = 0;
$this->rights[$r][4] = 'read'; $this->rights[$r][4] = 'read';
$r++; $r++;
$this->rights[$r][0] = 1101202; $this->rights[$r][0] = 63002;
$this->rights[$r][1] = 'Modify resources'; $this->rights[$r][1] = 'Create/Modify resources';
$this->rights[$r][3] = 0; $this->rights[$r][3] = 0;
$this->rights[$r][4] = 'write'; $this->rights[$r][4] = 'write';
$r++; $r++;
$this->rights[$r][0] = 1101203; $this->rights[$r][0] = 63003;
$this->rights[$r][1] = 'Delete resources'; $this->rights[$r][1] = 'Delete resources';
$this->rights[$r][3] = 0; $this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete'; $this->rights[$r][4] = 'delete';
$r++; $r++;
$this->rights[$r][0] = 1101204; $this->rights[$r][0] = 63004;
$this->rights[$r][1] = 'Link resources'; $this->rights[$r][1] = 'Link resources';
$this->rights[$r][3] = 0; $this->rights[$r][3] = 0;
$this->rights[$r][4] = 'link'; $this->rights[$r][4] = 'link';

View File

@ -1,5 +1,5 @@
Module210009Name=Incoterm Module62000Name=Incoterm
Module210009Desc=Add features to manage Incoterm Module62000Desc=Add features to manage Incoterm
IncotermLabel=Incoterms IncotermLabel=Incoterms
IncotermSetupTitle1=Feature IncotermSetupTitle1=Feature
IncotermSetupTitle2=Status IncotermSetupTitle2=Status

View File

@ -1,6 +1,6 @@
# Dolibarr language file - Source file is en_US - printing # Dolibarr language file - Source file is en_US - printing
Module112000Name=Direct Printing Module64000Name=Direct Printing
Module112000Desc=Enable Direct Printing System Module64000Desc=Enable Direct Printing System
PrintingSetup=Setup of Direct Printing System PrintingSetup=Setup of Direct Printing System
PrintingDesc=This module adds a Print button to send documents directly to a printer (without opening document into an application) with various module. PrintingDesc=This module adds a Print button to send documents directly to a printer (without opening document into an application) with various module.
ModuleDriverSetup=Setup Module Driver ModuleDriverSetup=Setup Module Driver