<!-- #!/usr/bin/env python2.3
#
#  tax_template_view.xml
#
#  Created by Nicolas Bessi on 12.02.09.
#  Copyright (c) 2009 CamptoCamp. All rights reserved.
# -->
<openerp>
    <data>
        <record id="view_tax_template_form_todo" model="ir.ui.view">
            <field name="name">account.tax.template.todo</field>
            <field name="model">account.tax.template.todo</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="base.res_config_view_base"/>
            <field name="arch" type="xml">
              <data>
                <form position="attributes">
                  <attribute name="string">Account tax template</attribute>
                </form>
                <group string="res_config_contents" position="replace">
                  <label colspan="4" align="0.0"
                         string="Set account on financial taxes defined by Camptocamp l10n_ch_c2c_pcg module"/>
                  <group colspan="4" col="6">
                    <field name="name" select="1"/>
                  </group>
                  <separator colspan="4" string="The accounts linked to the tax template"/>
                  <field name="account_collected_id"
                         on_change="on_change_collected(name, account_collected_id)" select="1"/>
                  <field name="account_paid_id"
                         on_change="on_change_paid(name, account_paid_id)" select="1"/>
                </group>
              </data>
            </field>
        </record>
        <record id="action_config_tax" model="ir.actions.act_window">
            <field name="name">Finalize your tax configuration</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.tax.template.todo</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_tax_template_form_todo"/>
            <field name="target">new</field>
        </record>
        <record id="action_config_tax_todo" model="ir.actions.todo">
            <field name="action_id" ref="action_config_tax"/>
            <field name="sequence">5</field>
            <field name="restart">onskip</field>
        </record>
    </data>
</openerp>
