Modification of a base module from a custom module

Hello,

I hope you are all doing well?
I need to understand a functionality with custom modules.
Indeed, I have created my own module that exploits HOOKS, MENUS, and TRIGGERS and it already works well. However, I have some modifications that I would like to apply to the Dolibarr interface, specifically on the COMM and INVOICE modules (Dolibarr’s Basic Modules), but I realize that the positions of the HOOKS that I find in the code are not in the position I want. I find myself stuck and I don’t want to be forced to MODIFY Dolibarr’s code.

How do I proceed?
In my thinking, I believed that by copying and pasting the /htdocs/comm folder into /htdocs/custom/mymodule/core/modules/ and modifying it, it would replace the code with mine… But it doesn’t work.

Please help me, for those who have knowledge on the subject.

I hope I have been clear in my message.

Best regards,
Ronny

1 Like

What about creating new hooks in places you need them and submitting a PR?
Dolibarr is a community project feel free to contribute :star_struck: