I was thinking in something more simpler like create a new model (project.work.state) to store the following fields:
- Type: Project or task
- Name: The name of the sequence
Then the state will depend on type and dynamically get the values from the project.work.state table.
And maybe we can include the following flags:
- Add tab domain: If set a new tab domain will be added for each action of project work that does not have any domain
- Count tab domain: Set if the count should be set for the tab domain.