Trigger functions

I’m in the process of drafting the concept for a MultiCurrency module (see also Howto / Help subforum).

I’ve been looking into the possibilities with triggers. When an order/invoice etc is validated, I need to check if there was already MultiCurrency module data present for this order, and if yes, the user should receive a warning that he needs to check that data or ideally be redirected to the MultiCurrency page.

Is there anyway to do this in the trigger interface?

Any help is really much appreciated!

You can have a look at dolibarr wiki to know how triggers works.
However you can execute silent action but can’t change the page of redirection on a submit event.

Thank you for the reply! I read the Wiki but already figured that silent actions was the only possibility with triggers.

Are you planning on expanding the possibilities with triggers in a future version or will it basically stay like this?

I think I will need a different approach than triggers, if you have any suggestion please let me know.

Would it, for example, be possible to extend the dolibarr system classes with a module? So for example, extend the commande class?

No, for the moment, only “silent action” is planned.