<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="sale.act_done" model="workflow.activity">
            <field name="wkf_id" ref="sale.wkf_sale"/>
            <field name="name">done</field>
            <field name="flow_stop" eval="False"/>
            <field name="kind">function</field>
            <field name="action">write({'state':'done'})</field>
            <field name="join_mode">AND</field>
        </record>

        <record id="act_reopen" model="workflow.activity">
            <field name="wkf_id" ref="sale.wkf_sale"/>
            <field name="name">reopen</field>
            <field name="action">action_reopen()
write({'state':'draft'})</field>
            <field name="kind">function</field>
        </record>
        
        <record id="trans_router_reopen" model="workflow.transition">
            <field name="act_from" ref="sale.act_router"/>
            <field name="act_to" ref="act_reopen"/>
            <field name="condition">allow_reopen()</field>
            <field name="signal">button_reopen</field>
        </record>
        <record id="trans_waitship_reopen" model="workflow.transition">
            <field name="act_from" ref="sale.act_wait_ship"/>
            <field name="act_to" ref="act_reopen"/>
            <field name="condition">allow_reopen()</field>
            <field name="signal">button_reopen</field>
        </record>
        <record id="trans_ship_reopen" model="workflow.transition">
            <field name="act_from" ref="sale.act_ship"/>
            <field name="act_to" ref="act_reopen"/>
            <field name="condition">allow_reopen()</field>
            <field name="signal">button_reopen</field>
        </record>


        <record id="trans_draft_process" model="workflow.transition">
            <field name="act_from" ref="act_reopen"/>
            <field name="act_to" ref="sale.act_router"/>
            <field name="signal">order_confirm</field>
        </record>
        <record id="trans_draft_cancel" model="workflow.transition">
            <field name="act_from" ref="act_reopen"/>
            <field name="act_to" ref="sale.act_cancel"/>
            <field name="signal">cancel</field>
        </record>
        <!-- new-->
   <record id="trans_rotuer_draft" model="workflow.transition">
       <field name="act_from" ref="sale.act_router"/>
       <field name="act_to" ref="sale.act_draft"/>
       <field name="signal">order_confirm</field>
   </record>
   
    </data>
</openerp><commit_msg>[FIX] workflow <commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="sale.act_done" model="workflow.activity">
            <field name="wkf_id" ref="sale.wkf_sale"/>
            <field name="name">done</field>
            <field name="flow_stop" eval="False"/>
            <field name="kind">function</field>
            <field name="action">write({'state':'done'})</field>
            <field name="join_mode">AND</field>
        </record>

        <record id="act_reopen" model="workflow.activity">
            <field name="wkf_id" ref="sale.wkf_sale"/>
            <field name="name">reopen</field>
            <field name="action">action_reopen()
write({'state':'draft'})</field>
            <field name="kind">function</field>
        </record>
        
        <record id="trans_router_reopen" model="workflow.transition">
            <field name="act_from" ref="sale.act_router"/>
            <field name="act_to" ref="act_reopen"/>
            <field name="condition">allow_reopen()</field>
            <field name="signal">button_reopen</field>
        </record>
        <record id="trans_waitship_reopen" model="workflow.transition">
            <field name="act_from" ref="sale.act_wait_ship"/>
            <field name="act_to" ref="act_reopen"/>
            <field name="condition">allow_reopen()</field>
            <field name="signal">button_reopen</field>
        </record>
        <record id="trans_ship_reopen" model="workflow.transition">
            <field name="act_from" ref="sale.act_ship"/>
            <field name="act_to" ref="act_reopen"/>
            <field name="condition">allow_reopen()</field>
            <field name="signal">button_reopen</field>
        </record>


        <record id="trans_draft_process" model="workflow.transition">
            <field name="act_from" ref="act_reopen"/>
            <field name="act_to" ref="sale.act_router"/>
            <field name="signal">order_confirm</field>
        </record>
        <record id="trans_draft_cancel" model="workflow.transition">
            <field name="act_from" ref="act_reopen"/>
            <field name="act_to" ref="sale.act_cancel"/>
            <field name="signal">cancel</field>
        </record>
        <!-- new-->
   <record id="trans_rotuer_draft" model="workflow.transition">
       <field name="act_from" ref="sale.act_router"/>
       <field name="act_to" ref="sale.act_draft"/>
   </record>
   
    </data>
</openerp>
{'fraction_non_alphanumeric': 0.17007621339751303, 'fraction_numerical': 0.0012033694344163659, 'mean_word_length': 2.626909090909091, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 2, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5610974', 'n_tokens_mistral': 1546, 'n_tokens_neox': 1495, 'n_words': 235}