<?xml version="1.0" ?>
<openerp>
    <data>

    <!--
        Process
    -->

        <record id="process_process_statementprocess0" model="process.process">
            <field eval="1" name="active"/>
            <field name="model_id" ref="account.model_account_bank_statement"/>
            <field eval="&quot;&quot;&quot;Statement&quot;&quot;&quot;" name="name"/>
        </record>

    <!--
        Process Node
    -->

        <record id="process_node_electronicfile0" model="process.node">
            <field name="menu_id" ref="account.menu_bank_statement_tree"/>
            <field name="model_id" ref="account.model_account_bank_statement"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Electronic File&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Automatic entry&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_statementprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
            <field eval="1" name="flow_start"/>
        </record>

        <record id="process_node_manually0" model="process.node">
            <field name="menu_id" ref="account.menu_bank_statement_tree"/>
            <field name="model_id" ref="account.model_account_bank_statement"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Manually&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Manual entry&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_statementprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
            <field eval="1" name="flow_start"/>
        </record>

        <record id="process_node_importinvoice0" model="process.node">
            <field name="menu_id" ref="account.menu_bank_statement_tree"/>
            <field name="model_id" ref="account.model_account_bank_statement"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Import from invoice&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Statement from invoice or payment&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_statementprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
            <field eval="1" name="flow_start"/>
        </record>

        <record id="process_node_draftstatement0" model="process.node">
            <field name="menu_id" ref="account.menu_bank_statement_tree"/>
            <field name="model_id" ref="account.model_account_bank_statement"/>
            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
            <field eval="&quot;&quot;&quot;Draft statement&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;State is draft&quot;&quot;&quot;" name="note"/>
            <field name="process_id" ref="process_process_statementprocess0"/>
            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
            <field eval="0" name="flow_start"/>
        </record>

    <!--
        Process Transition
    -->

    	<record id="process_transition_filestatement0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Automatic import of the bank statement&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Import of the statement in the system from an electronic file&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="process_node_draftstatement0"/>
            <field model="process.node" name="source_node_id" ref="process_node_electronicfile0"/>
        </record>

        <record id="process_transition_invoicemanually0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Manual entry&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;A statement with manual entries becomes a draft statement.&quot;&quot;&quot;" name="note"/>

            <field model="process.node" name="target_node_id" ref="process_node_draftstatement0"/>
            <field model="process.node" name="source_node_id" ref="process_node_manually0"/>
        </record>

        <record id="process_transition_invoiceimport0" model="process.transition">
            <field eval="[(6,0,[])]" name="transition_ids"/>
            <field eval="&quot;&quot;&quot;Import from invoice or payment&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;Import of the statement in the system from a supplier or customer invoice&quot;&quot;&quot;" name="note"/>
            <field model="process.node" name="target_node_id" ref="process_node_draftstatement0"/>
            <field model="process.node" name="source_node_id" ref="process_node_importinvoice0"/>
        </record>

    </data>
</openerp>