Odoo Workflow
wkf_instance table
ID | res_type | uid | wkf_id | state | res_id |
166213 | product.product | 17 | 4 | active | 59488 |
select id, res_type, uid, wkf_id, state, res_id from wkf_instance where res_type='purchase.order' and res_id = 59488;
wkf_workitem table
ID | act_id | inst_id | subflow_id | state | |
361330 | 19 | 166213 | complete |
wkf_activity table
ID | kind | name | action | wkf_id | |
19 | function | released | action_release() | 4 |
select id, kind, name, action, wkf_id from wkf_activity where id=19;
This is the common procedure for workorder.
You need to verify that the workflow of you object is following this procedure.
So in wkf_instance table you have to search for
res_type = your_model
res_id = your_object_id
Then get ID from this table and search in the table wkf_workitem the column inst_id equal to this ID
Last operation to do get act_id from this table and search in wkf_activity the operation.
If not correct change act_id column of table wkf_workitem with the correct ID taken from wkf_activity