Module : Remove Confirmation Pop-up

Hi,

I released since sevral month a module that allows the administrator to remove the confirmation pop-ups that comes too often in my opinion.

Exemple of pop-ups that the module can remove :
image

Below, please find the pop-up list of what could be removed :

I’m not sure how many users, use it, so be aware that it could have some bugs inside :wink:
Dolibarr min version : 9.0
DOlibarr max : 11.0

The sources are on : GitHub - ksar-ksar/Dolibarr_removeconf: Module to remove the confirmation pop-up for Dolibarr > V9.0
The package on dolistore : Remove Confirmation Pop-up

@+

1 Like

Hi,

The V2.0.0 is now released with permissions by users instead of global permissions for all the users.

2 Likes

Hello. Could you make it also disable confirmations in fichinter?
If you don’t have time i ll have a look in the code later this month and share the code.

1 Like

@ksar I have expanded your module: with BOM, MO and Purchase Orders

For some modules like: project, reception, interventions, product delete vendor prices I am unable to get the code working. Can you confirm that when the Call Hook formConfirm ( $parameters = array('formConfirm' … ) is not available in a module, it’s not possible to implement the suppression of the pop-ups? Or if this is not the case, can you point me in the right direction?

Once I have cleaned up my code, I will make a pull request on GitHub.

Hello,

Thanks for looking to this module.

In fact, I’m using the hook formConfirm

The classical code in the core module is :

	// Call Hook formConfirm
	$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
	$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
	if (empty($reshook)) {
		$formconfirm .= $hookmanager->resPrint;
	} elseif ($reshook > 0) {
		$formconfirm = $hookmanager->resPrint;
	}

So I’m sending a reshook = 1 with a resPrint containing the javascript redirection.

Hello,

Thanks to @erikvanberkum, an update of the module is available for BOM and MO modules.

module_removeconf-2.1.0.zip (109.9 KB)

1 Like

Hello @ksar,

I discovered your AMAZING module today. I’ve downloaded and tested it in my development instance of Dolibarr 20.0.2, and it seems to work “perfectly fine”. I’ve tried at least 2 different actions both with and without the confirmation popup dialog.

Beautiful work!! If my memory serves me right, I would say that I have never missed clicking ‘NO’ in those confirmation dialogs. While they might be necessary for some business environments, in my personal use of Dolibarr, it was really a chronic pain to go through 4 confirmation dialogs just to validate an invoice, modify it for a tiny change, revalidate it again, and repeat all this for the payment… you know what I mean.

That said, I notice the version on GitHub is from 3 years ago. Is this the latest version? Would you like me to test it on recent Dolibarr versions like 18, 19, and 20? What would be your recommendation if I want to help maintain it? I’m interested in installing it across all my customers’ instances. :blush:

Hello @caos30,

Thanks for your message and feedback.
Basically I stop working on it 3 years ago, due to less personal time and very few feedback. I’m in the opinion that this module is not used, so it is useless.

Github is open to everyone, your contributions are welcome !

2 Likes

Are you not using this module for your own benefit? :open_mouth:
I means, it is very useful for me. Why not to use it?

Indeed, i added a PULL REQUEST on Github with spanish translation and adding new confirmation pop-ups (projects, and classyfy as PAID customer invoices).

Hello @caos30,

Unfortunately, I stopped using Dolibarr a few years ago.
Now it’s just for the community :wink:

1 Like

Hello all,

Thanks to several contributions, the module is released in V2.2.1 :raised_hands:

Change Log :

  • NEW : Add bold for warnings on permissions (proposal from Iouston)
  • FIX : Configuration for stock on invoice Validation
  • NEW : Remove confirmation for the Proposal Validation
  • NEW : Added spanish translation
  • NEW : New Customer Invoice Paid confirmation pop-ups
  • NEW : New Project Validate/Delete/Reopen/CLose/Clone confirmation pop-ups (Need Dolibarr V21)
1 Like