From 9d9e68939114afc0e2d2adbc6f4d7fa1e2de3883 Mon Sep 17 00:00:00 2001
From: ksar <35605507+ksar-ksar@users.noreply.github.com>
Date: Wed, 1 Jul 2020 14:22:47 +0200
Subject: [PATCH] Change module ID
---
ChangeLog.md | 3 ++
core/modules/modremoveconf.class.php | 50 ++++++++++++++--------------
langs/en_US/removeconf.lang | 48 +++++++++++++-------------
langs/fr_FR/removeconf.lang | 48 +++++++++++++-------------
version.txt | 2 +-
5 files changed, 77 insertions(+), 74 deletions(-)
diff --git a/ChangeLog.md b/ChangeLog.md
index aa29d99..bc8d620 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,8 @@
# CHANGELOG REMOVECONF FOR DOLIBARR ERP CRM
+## 2.0.1
+Change Module ID
+
## 2.0.0
Thanks to Akene, add user permissions instead of gloabl permission to this module.
This allows to better control who can by-pass the confirmation pop-up
diff --git a/core/modules/modremoveconf.class.php b/core/modules/modremoveconf.class.php
index 40c5031..ffa754a 100644
--- a/core/modules/modremoveconf.class.php
+++ b/core/modules/modremoveconf.class.php
@@ -66,7 +66,7 @@ public function __construct($db)
$this->editor_url = 'https://github.com/ksar-ksar/';
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z'
- $this->version = '2.0.0';
+ $this->version = '2.0.1';
// Url to the file with your last numberversion of this module
$this->url_last_version = 'https://raw.githubusercontent.com/ksar-ksar/Dolibarr_removeconf/master/version.txt';
@@ -125,168 +125,168 @@ public function __construct($db)
$this->rights_class = $this->name;
$r = 0;
- $this->rights[$r][0] = 5000451;
+ $this->rights[$r][0] = 2073001;
$this->rights[$r][1] = 'Supprimer les propales sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'propal_delete';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000452;
+ $this->rights[$r][0] = 2073002;
$this->rights[$r][1] = 'Réouvrir les propales sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'reopen_propale';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000453;
+ $this->rights[$r][0] = 2073003;
$this->rights[$r][1] = 'Supprimer les lignes de propales sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_propale_line';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000454;
+ $this->rights[$r][0] = 2073004;
$this->rights[$r][1] = 'Supprimer les commandes sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_order';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000455;
+ $this->rights[$r][0] = 2073005;
$this->rights[$r][1] = 'Valider les commandes sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'validate_order';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000456;
+ $this->rights[$r][0] = 2073006;
$this->rights[$r][1] = 'Modifier les commandes sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'update_order';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000457;
+ $this->rights[$r][0] = 2073007;
$this->rights[$r][1] = 'Expédier les commandes sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'shipping_order';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000458;
+ $this->rights[$r][0] = 2073008;
$this->rights[$r][1] = 'Annuler les commandes sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'cancel_order';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000459;
+ $this->rights[$r][0] = 2073009;
$this->rights[$r][1] = 'Supprimer les lignes commandes sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_order_line';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000410;
+ $this->rights[$r][0] = 20730010;
$this->rights[$r][1] = 'Supprimer les factures sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_invoice';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000411;
+ $this->rights[$r][0] = 20730011;
$this->rights[$r][1] = 'Valider les factures sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'validate_invoice';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000412;
+ $this->rights[$r][0] = 20730012;
$this->rights[$r][1] = 'Modifier les factures sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'update_invoice';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000413;
+ $this->rights[$r][0] = 20730013;
$this->rights[$r][1] = 'Expédier les factures sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'shipping_invoice';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000414;
+ $this->rights[$r][0] = 20730014;
$this->rights[$r][1] = 'Annuler les factures sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'cancel_invoice';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000415;
+ $this->rights[$r][0] = 20730015;
$this->rights[$r][1] = 'Supprimer les lignes de facture sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_invoice_line';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000416;
+ $this->rights[$r][0] = 20730016;
$this->rights[$r][1] = 'Supprier les expéditions sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_shipping';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000417;
+ $this->rights[$r][0] = 20730017;
$this->rights[$r][1] = 'Valider les expéditions sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'validate_shipping';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000418;
+ $this->rights[$r][0] = 20730018;
$this->rights[$r][1] = 'Annuler les expéditions sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'cancel_shipping';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000419;
+ $this->rights[$r][0] = 20730019;
$this->rights[$r][1] = 'Supprimer les inventaires sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_inventory';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000420;
+ $this->rights[$r][0] = 20730020;
$this->rights[$r][1] = 'Supprimer les entreprots sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_warehouse';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000421;
+ $this->rights[$r][0] = 20730021;
$this->rights[$r][1] = 'Supprimer les propales fournisseurs sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_propal_supplier';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000422;
+ $this->rights[$r][0] = 20730022;
$this->rights[$r][1] = 'Réouvrir les propales fournisseurs sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'reopen_propal_supplier';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000423;
+ $this->rights[$r][0] = 20730023;
$this->rights[$r][1] = 'Supprimer une ligne de propale fournisseur sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'delete_propal_supplier_line';
$this->rights[$r][5] = '';
$r++;
- $this->rights[$r][0] = 5000424;
+ $this->rights[$r][0] = 20730024;
$this->rights[$r][1] = 'Supprimer le site web sans confirmation';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
diff --git a/langs/en_US/removeconf.lang b/langs/en_US/removeconf.lang
index 5de5120..3958016 100644
--- a/langs/en_US/removeconf.lang
+++ b/langs/en_US/removeconf.lang
@@ -33,27 +33,27 @@ ForAnyQuestions = If you have any question please send an email to
#
# Permissions
#
-Permission5000451 = Delete Propal without confirmation
-Permission5000452 = Re-open Propal without confirmation
-Permission5000453 = Delete Propal Line without confirmation
-Permission5000454 = Delete Order without confirmation
-Permission5000455 = Validate Order without confirmation
WARNING : If you use sevral warehouses it will show anyway the confirmation form
-Permission5000456 = Modify validated Order without confirmation
-Permission5000457 = Shipp Order without confirmation
-Permission5000458 = Cancel Order without confirmation
-Permission5000459 = Delete Order Line without confirmation
-Permission5000410 = Delete Invoice without confirmation
-Permission5000411 = Valid Invoice without confirmation
WARNING : If you use sevral warehouses it will show anyway the confirmation form
-Permission5000412 = Modify validated Invoice without confirmation
-Permission5000413 = Shipp Invoice without confirmation
-Permission5000414 = Cancel Invoice without confirmation
-Permission5000415 = Delete Invoice Line without confirmation
-Permission5000416 = Delete Shipment without confirmation
-Permission5000417 = Validate Shipment without confirmation
-Permission5000418 = Cancel Shipment without confirmation
-Permission5000419 = Delete Inventory without confirmation
-Permission5000420 = Delete Warehouse without confirmation
-Permission5000421 = Delete Supplier proposal without confirmation
-Permission5000422 = Re-open Supplier proposal without confirmation
-Permission5000423 = Delete Propal Line without confirmation
-Permission5000424 = Delete WebsiteAccount without confirmation
+Permission2073001 = Delete Propal without confirmation
+Permission2073002 = Re-open Propal without confirmation
+Permission2073003 = Delete Propal Line without confirmation
+Permission2073004 = Delete Order without confirmation
+Permission2073005 = Validate Order without confirmation
WARNING : If you use sevral warehouses it will show anyway the confirmation form
+Permission2073006 = Modify validated Order without confirmation
+Permission2073007 = Shipp Order without confirmation
+Permission2073008 = Cancel Order without confirmation
+Permission2073009 = Delete Order Line without confirmation
+Permission20730010 = Delete Invoice without confirmation
+Permission20730011 = Valid Invoice without confirmation
WARNING : If you use sevral warehouses it will show anyway the confirmation form
+Permission20730012 = Modify validated Invoice without confirmation
+Permission20730013 = Shipp Invoice without confirmation
+Permission20730014 = Cancel Invoice without confirmation
+Permission20730015 = Delete Invoice Line without confirmation
+Permission20730016 = Delete Shipment without confirmation
+Permission20730017 = Validate Shipment without confirmation
+Permission20730018 = Cancel Shipment without confirmation
+Permission20730019 = Delete Inventory without confirmation
+Permission20730020 = Delete Warehouse without confirmation
+Permission20730021 = Delete Supplier proposal without confirmation
+Permission20730022 = Re-open Supplier proposal without confirmation
+Permission20730023 = Delete Propal Line without confirmation
+Permission20730024 = Delete WebsiteAccount without confirmation
diff --git a/langs/fr_FR/removeconf.lang b/langs/fr_FR/removeconf.lang
index e715632..92b4b12 100644
--- a/langs/fr_FR/removeconf.lang
+++ b/langs/fr_FR/removeconf.lang
@@ -33,27 +33,27 @@ ForAnyQuestions = Si vous avez des question, envoyer un email à
#
# Permissions
#
-Permission5000451 = Supprimer les propales sans confirmation
-Permission5000452 = Réouvrir les propales sans confirmation
-Permission5000453 = Supprimer les lignes de propales sans confirmation
-Permission5000454 = Supprimer les commandes sans confirmation
-Permission5000455 = Valider les commandes sans confirmation
ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé
-Permission5000456 = Modifier les commandes sans confirmation
-Permission5000457 = Expédier les commandes sans confirmation
-Permission5000458 = Annuler les commandes sans confirmation
-Permission5000459 = Supprimer les lignes de commandes sans confirmation
-Permission5000410 = Supprimer les factures sans confirmation
-Permission5000411 = Valider les factures sans confirmation
ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé
-Permission5000412 = Modifier les factures sans confirmation
-Permission5000413 = Expédier les factures sans confirmation
-Permission5000414 = Annuler les factures sans confirmation
-Permission5000415 = Supprimer les lignes de facture sans confirmation
-Permission5000416 = Supprimer les expéditions sans confirmation
-Permission5000417 = Valider les expéditions sans confirmation
-Permission5000418 = Annuler les expéditions sans confirmation
-Permission5000419 = Supprimer les inventaires sans confirmation
-Permission5000420 = Supprimer les entreprots sans confirmation
-Permission5000421 = Supprimer les propales fournisseurs sans confirmation
-Permission5000422 = Réouvrir les propales fournisseurs sans confirmation
-Permission5000423 = Supprimer une ligne de propale fournisseur sans confirmation
-Permission5000424 = Supprimer le site web sans confirmation
\ No newline at end of file
+Permission2073001 = Supprimer les propales sans confirmation
+Permission2073002 = Réouvrir les propales sans confirmation
+Permission2073003 = Supprimer les lignes de propales sans confirmation
+Permission2073004 = Supprimer les commandes sans confirmation
+Permission2073005 = Valider les commandes sans confirmation
ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé
+Permission2073006 = Modifier les commandes sans confirmation
+Permission2073007 = Expédier les commandes sans confirmation
+Permission2073008 = Annuler les commandes sans confirmation
+Permission2073009 = Supprimer les lignes de commandes sans confirmation
+Permission20730010 = Supprimer les factures sans confirmation
+Permission20730011 = Valider les factures sans confirmation
ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé
+Permission20730012 = Modifier les factures sans confirmation
+Permission20730013 = Expédier les factures sans confirmation
+Permission20730014 = Annuler les factures sans confirmation
+Permission20730015 = Supprimer les lignes de facture sans confirmation
+Permission20730016 = Supprimer les expéditions sans confirmation
+Permission20730017 = Valider les expéditions sans confirmation
+Permission20730018 = Annuler les expéditions sans confirmation
+Permission20730019 = Supprimer les inventaires sans confirmation
+Permission20730020 = Supprimer les entreprots sans confirmation
+Permission20730021 = Supprimer les propales fournisseurs sans confirmation
+Permission20730022 = Réouvrir les propales fournisseurs sans confirmation
+Permission20730023 = Supprimer une ligne de propale fournisseur sans confirmation
+Permission20730024 = Supprimer le site web sans confirmation
\ No newline at end of file
diff --git a/version.txt b/version.txt
index 227cea2..38f77a6 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-2.0.0
+2.0.1