I have a custom module, and I'd like to do the following two things:
- When an object gets into a particular state, automatically create a project.task item.
- When the task is Done, send a signal to my custom object workflow (to send it into the next state)
I know how to do #1 (by calling self.pool.get('project.task').create in my state action function). But, any idea how to do #2?