Skip to content

Commit

Permalink
Change module ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ksar-ksar committed Jul 1, 2020
1 parent 4d13783 commit 9d9e689
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 74 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG REMOVECONF FOR <a href="https://www.dolibarr.org">DOLIBARR ERP CRM</a>

## 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
Expand Down
50 changes: 25 additions & 25 deletions core/modules/modremoveconf.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down
48 changes: 24 additions & 24 deletions langs/en_US/removeconf.lang
Original file line number Diff line number Diff line change
Expand Up @@ -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<br/> <b style="color: red">WARNING : If you use sevral warehouses it will show anyway the confirmation form</b>
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<br/> <b style="color: red">WARNING : If you use sevral warehouses it will show anyway the confirmation form</b>
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<br/> <b style="color: red">WARNING : If you use sevral warehouses it will show anyway the confirmation form</b>
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<br/> <b style="color: red">WARNING : If you use sevral warehouses it will show anyway the confirmation form</b>
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
48 changes: 24 additions & 24 deletions langs/fr_FR/removeconf.lang
Original file line number Diff line number Diff line change
Expand Up @@ -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<br/><b style="color: red">ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé</b>
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<br/><b style="color: red">ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé</b>
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
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<br/><b style="color: red">ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé</b>
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<br/><b style="color: red">ATTENTION : Si vous avez plusieurs entrepots, le pop-up de confirmation ne sera pas supprimé</b>
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
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.0.1

0 comments on commit 9d9e689

Please sign in to comment.