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

        <!--
        RIB bank details
        -->
        <record id="bank_rib" model="res.partner.bank.type">
            <field name="name">RIB and optional IBAN</field>
            <field name="code">rib</field>
            <field name="format_layout">%(bank_name)s: %(bank_code)s %(office)s %(rib_acc_number)s %(key)s</field>
        </record>

        <record id="rib_bank_code_field" model="res.partner.bank.type.field">
            <field name="name">bank_code</field>
            <field name="bank_type_id" ref="bank_rib"/>
            <field eval="True" name="required"/>
            <field eval="False" name="readonly"/>
            <field name="size">5</field>
        </record>
        <record id="rib_office_field" model="res.partner.bank.type.field">
            <field name="name">office</field>
            <field name="bank_type_id" ref="bank_rib"/>
            <field eval="True" name="required"/>
            <field eval="False" name="readonly"/>
            <field name="size">5</field>
        </record>
        <record id="rib_rib_acc_number_field" model="res.partner.bank.type.field">
            <field name="name">rib_acc_number</field>
            <field name="bank_type_id" ref="bank_rib"/>
            <field eval="True" name="required"/>
            <field eval="False" name="readonly"/>
            <field name="size">11</field>
        </record>
        <record id="rib_key_field" model="res.partner.bank.type.field">
            <field name="name">key</field>
            <field name="bank_type_id" ref="bank_rib"/>
            <field eval="True" name="required"/>
            <field eval="False" name="readonly"/>
            <field name="size">2</field>
        </record>
        <record id="rib_acc_number_field" model="res.partner.bank.type.field">
            <field name="name">acc_number</field>
            <field name="bank_type_id" ref="bank_rib"/>
            <field eval="False" name="required"/>
            <field eval="False" name="readonly"/>
        </record>
        <record id="rib_bic_field" model="res.partner.bank.type.field">
            <field name="name">bank_bic</field>
            <field name="bank_type_id" ref="bank_rib"/>
            <field name="required" eval="False"/>
        </record>

    </data>
</openerp>
