<?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="configuration_view_form">
            <field name="model">account.configuration</field>
            <field name="inherit" ref="account.configuration_view_form"/>
            <field name="name">configuration_form</field>
        </record>

        <record model="ir.property" id="property_stock_journal">
            <field name="field"
                search="[('model.model', '=', 'account.configuration'), ('name', '=', 'stock_journal')]"/>
            <field name="value" eval="'account.journal,' + str(ref('account.journal_stock'))"/>
        </record>

        <record model="ir.ui.view" id="fiscalyear_view_form">
            <field name="model">account.fiscalyear</field>
            <field name="inherit" ref="account.fiscalyear_view_form"/>
            <field name="name">fiscalyear_form</field>
        </record>

        <!-- Read access for origin field on account.move -->
        <record model="ir.model.access" id="access_move_group_account">
            <field name="model" search="[('model', '=', 'stock.move')]"/>
            <field name="group" ref="account.group_account"/>
            <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>

    </data>
</tryton>
