Python / Odoo Developer

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Fix Odoo Workflow Issue

Avatar
Administrator

Odoo Workflow


wkf_instance table

ID
res_type
uid
wkf_id
state
res_id
166213
product.product
17
4active59488

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

IDact_idinst_idsubflow_idstate
361330
19166213

complete

select id, act_id, inst_id, subflow_id, state from wkf_workitem where inst_id=166213;


wkf_activity table

IDkindnameactionwkf_id
19functionreleasedaction_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


Avatar
Discard