If you create a module that has a specific task that overrides or runs before/after the Inventory task it will revert to no task selected to override etc when you import it into a new project. Not sure if this is happening when exporting or importing it.
Other specific tasks in my latest module were fine except for the Specific task to override Inventory (i did try setting it to after) and still did it.
My work around was making the Custom inventory task a General task.