Go to the sales module and create a new service product. Further, set the service tracking as ‘Create a task in an existing project’ under the sales tab and then define the existing project. When you create a sales order for the service product and confirm the order, a task will be created automatically in the project.