Source

party_bank / bank.xml

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of this
  repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.ui.view" id="bank_view_tree">
            <field name="model">bank.bank</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <![CDATA[
                    <tree string="Banks">
                        <field name="name"/>
                        <field name="bank_code"/>
                        <field name="bic"/>
                    </tree>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="bank_view_form">
            <field name="model">bank.bank</field>
            <field name="type">form</field>
            <field name="inherit" ref="party.party_view_form"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath
                        expr="/form"
                        position="replace_attributes">
                        <form string="Bank"/>
                    </xpath>
                    <xpath
                        expr="/form/notebook"
                        position="before">
                        <newline/>
                        <label name="bank_code"/>
                        <field name="bank_code"/>
                        <label name="bic"/>
                        <field name="bic"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>
        <record model="ir.action.act_window" id="act_bank_view">
            <field name="name">Banks</field>
            <field name="context">{'is_bank': True}</field>
            <field name="res_model">bank.bank</field>
        </record>
        <record model="ir.action.act_window.view" id="act_tree_bank_view">
            <field name="sequence" eval="10"/>
            <field name="view" ref="bank_view_tree"/>
            <field name="act_window" ref="act_bank_view"/>
        </record>
        <record model="ir.action.act_window.view" id="act_form_bank_view">
            <field name="sequence" eval="20"/>
            <field name="view" ref="bank_view_form"/>
            <field name="act_window" ref="act_bank_view"/>
        </record>
        <menuitem parent="party.menu_party" sequence="50"
                    action="act_bank_view" id="menu_bank_view"/>

        <record model="ir.ui.view" id="bank_account_view_form">
            <field name="model">bank.account</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Bank Account">
                    <label name="currency"/>
                    <field name="currency"/>
                    <label name="bank"/>
                    <field name="bank"/>
                    <label name="code"/>
                    <field name="code"/>
                    <label name="bank_code"/>
                    <field name="bank_code"/>
                    <label name="iban"/>
                    <field name="iban"/>
                    <label name="bic"/>
                    <field name="bic"/>
                    <separator name="owner" colspan="4"/>
                    <label name="owner"/>
                    <field name="owner"/>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="bank_account_view_tree">
            <field name="model">bank.account</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <![CDATA[
                <tree string="Bank Accounts">
                    <field name="code"/>
                    <field name="bank_code"/>
                    <field name="iban"/>
                    <field name="bic"/>
                    <field name="bank"/>
                    <field name="currency"/>
                    <field name="owner"/>
                </tree>
                ]]>
            </field>
        </record>
    </data>
</tryton>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.