I want to develop a script that automatically updates my own module with new data

Hello guys,
to go into more detail, I am trying to build a module/object that’s just a list of Customer Orders with the corresponding Project numbers (if there are any).
I have already tried doing this with a trigger, by taking the CO and Project Number from an Order as soon as it is validated but that did not work out. Does anybody have an idea what else I can try?
Thank you in advance and if you need me to go more into detail feel free to just tell me.
Have a good day.

Hello Dokik,
Shoot me a PM and maybe we can figure something out

Hello,
as I made this post 5 months ago, when I just started with dolibarr, I have learned a lot of stuff since then. I figured out that this is rather easy so I don’t need help anymore and will close the thread.
I still appreciate your response, thank you.