Exporting a custom module

Hello all!
I developed a new custom module in Dolibarr and to this i needed to integrate it with Project module from dolibarr and added a new column to the project table, also i modified some main files like core/classes/xfile.php and added new functions in these files. My question now when i export the module and import it in a new server it fails because the new functions are not imported and the new column in the project table is also not imported and this is correct because i didn’t see it exported, now how can i export all my modifications?

Hello,

You should never modify core file.
Everything should be done inside your module.

even i need to add a new field to the add project card?

Hello,

Yes of course, in ALL cases.

If you want to add something on existing cards, you need to use :
Hooks : Hooks system - Dolibarr ERP CRM Wiki
or
Tabs : Tabs system - Dolibarr ERP CRM Wiki

1 Like