This question is incomplete (in terms of mcve). How do you call the function? How do you compile? How do you call the compiled app? Additionally your answer seems inconsistent with the question:
"odoo-" + service can never be "my-service". You wrote "I will really appreciate having an answer […]". To raise the chances, you should improve your question so it's complete, and your answer so it's consistent with the question.