<?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="statement_journal_view_form">
            <field name="model">account.statement.journal</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Statement Journal">
                    <label name="name"/>
                    <field name="name"/>
                    <label name="journal"/>
                    <field name="journal"/>
                    <label name="currency"/>
                    <field name="currency"/>
                    <label name="company"/>
                    <field name="company"/>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="statement_journal_view_tree">
            <field name="model">account.statement.journal</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <![CDATA[
                <tree string="Statement Journals">
                    <field name="name"/>
                    <field name="journal"/>
                    <field name="currency"/>
                    <field name="company"/>
                </tree>
                ]]>
            </field>
        </record>
        <record model="account.journal.type" id="journal_type_statement">
            <field name="name">Statement</field>
            <field name="code">statement</field>
        </record>

        <record model="ir.action.act_window" id="act_statement_journal_form">
            <field name="name">Statement Journals</field>
            <field name="res_model">account.statement.journal</field>
        </record>
        <record model="ir.action.act_window.view" id="act_statement_journal_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="statement_journal_view_tree"/>
            <field name="act_window" ref="act_statement_journal_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_statement_journal_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="statement_journal_view_form"/>
            <field name="act_window" ref="act_statement_journal_form"/>
        </record>
        <menuitem parent="menu_statement_configuration" sequence="1"
            action="act_statement_journal_form" id="menu_statement_journal_form"/>

        <record model="ir.model.access" id="access_statement_journal">
            <field name="model" search="[('model', '=', 'account.statement.journal')]"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_statement_journal_admin">
            <field name="model" search="[('model', '=', 'account.statement.journal')]"/>
            <field name="group" ref="account.group_account_admin"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>

    </data>
</tryton>
