How to replace existing workflow (activity and transition) using import method
Hi
i would like to replace existing workflow like activity and transistion in administration - > customization - > workflows
i use this kind of code to import it
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="act_confirmed" model="
<field name="wkf_id" ref="purchase_
<field name="name"
<field name="kind"
<field name="action"
</record>
<record id="act_
<field name="wkf_id" ref="purchase_
<field name="name"
<field name="kind"
<field name="action"
</record>
<record id="act_
<field name="wkf_id" ref="purchase_
<field name="name"
<field name="kind"
<field name="action"
</record>
<record id="trans_
<field name="act_from" ref="act_
<field name="act_to" ref="act_
<field name="signal"
</record>
<record id="trans_
<field name="act_from" ref="act_
<field name="act_to" ref="act_
<field name="signal"
</record>
<record id="trans_
<field name="act_from" ref="act_
<field name="act_to" ref="act_
<field name="signal"
</record>
</data>
</openerp>
but there is one thing that is weird here, id="act_confirmed" is an existing "activity".
If i don't place it in here, when i importing, it will command an error that said couldn't find act_confirmed, therefore i added here.
but if i added here, when i import the module to OpenERP, the activity will be duplicated, and the workflow will also be messed up. I don't want it to be duplicated.
Anyone have clue about this? how to replace it? or what solution best for this. Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask John Chen for more information if necessary.