<?xml version="1.0" ?>
<odoo>

  <record id="ebics_file_format_view_tree" model="ir.ui.view">
    <field name="name">ebics.file.format.tree</field>
    <field name="model">ebics.file.format</field>
    <field name="arch" type="xml">
      <tree>
                  <field name="ebics_version" />
        <field name="type" />
        <field name="order_type" />
        <field name="signature_class" />
        <field name="name" />
        <field name="description" />
      </tree>
    </field>
  </record>

  <record id="ebics_file_format_view_form" model="ir.ui.view">
    <field name="name">ebics.file.format.form</field>
    <field name="model">ebics.file.format</field>
    <field name="arch" type="xml">
      <form string="EBICS File Format">
        <group name="main">
          <group name="main-left">
            <field name="ebics_version" />
            <field name="type" />
            <field name="suffix" />
            <field
                            name="download_process_method"
                            attrs="{'invisible': [('type', '=', 'up')]}"
                            force_save="1"
                        />
            <field name="signature_class" />
          </group>
          <group name="main-right">
            <field name="order_type" />
            <field
                            name="name"
                            attrs="{'required': [('ebics_version', '=', '2')], 'invisible': [('ebics_version', '=', '3')]}"
                        />
            <field
                            name="btf_service"
                            attrs="{'required': [('ebics_version', '=', '3')], 'invisible': [('ebics_version', '=', '2')]}"
                        />
            <field
                            name="btf_message"
                            attrs="{'required': [('ebics_version', '=', '3')], 'invisible': [('ebics_version', '=', '2')]}"
                        />
            <field
                            name="btf_scope"
                            attrs="{'invisible': [('ebics_version', '=', '2')]}"
                        />
            <field
                            name="btf_option"
                            attrs="{'invisible': [('ebics_version', '=', '2')]}"
                        />
            <field
                            name="btf_container"
                            attrs="{'invisible': [('ebics_version', '=', '2')]}"
                        />
            <field
                            name="btf_version"
                            attrs="{'invisible': [('ebics_version', '=', '2')]}"
                        />
            <field
                            name="btf_variant"
                            attrs="{'invisible': [('ebics_version', '=', '2')]}"
                        />
            <field
                            name="btf_format"
                            attrs="{'invisible': [('ebics_version', '=', '2')]}"
                        />
          </group>
        </group>
        <group name="description">
          <field name="description" />
        </group>
      </form>
    </field>
  </record>

  <record id="ebics_file_format_action" model="ir.actions.act_window">
    <field name="name">EBICS File Formats</field>
    <field name="res_model">ebics.file.format</field>
    <field name="view_mode">tree,form</field>
  </record>

</odoo>
