Force init() function on update

Hello,
I’m developing my first custom module for Dolibarr and I need your help !
My custom module will be installed on several Dolibarr and I have a problem to manage the updates.
Usually, we have to deactivate and reactivate the module to execute the init() function and apoly changes.
Is there a way to force init() function without deactivate and reactivate the module ?
Like a hook when version of my module changes for example ?
Thanks a lot and have a nice day :slight_smile:

For the moment, there is no such feature. deactivate/activate is the only available solution.

Thanks for your reply.
Is there a way to force deactivation and reactivation of a custom module ?

What if you extended Dolibarr such that it could be done using the API?

Tanks for your reply.
I’m a beginner with Dolibarr, and I’m going to look in this direction. :face_with_monocle: