<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="base.user_demo" model="res.users">
        <field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
    </record>
    <data noupdate="1">
        <record id="account_asset_group_demo" model="account.asset.group">
            <field name="name">Odoo Office</field>
        </record>

        <record id="account_asset_model_demo" model="account.asset">
            <field name="name">Asset - 5 Years</field>
            <field name="prorata_computation_type">none</field>
            <field name="original_value">1000</field>
            <field name="journal_id" model="account.journal" search="[
                ('type', '=', 'general'),
                ('id', '!=', obj().env.user.company_id.currency_exchange_journal_id.id)]"/>
            <field name="account_asset_id" model="account.account" search="[
                ('account_type', '=', 'asset_fixed'),
                ('company_ids', '=', ref('base.main_company'))]"/>
            <field name="account_depreciation_id" model="account.account" search="[
                ('account_type', '=', 'asset_fixed'),
                ('company_ids', '=', ref('base.main_company'))]"/>
            <field name="account_depreciation_expense_id" model="account.account" search="[
                ('account_type', '=', 'expense'),
                ('tag_ids', 'in', [ref('account.account_tag_operating')]),
                ('company_ids', '=', ref('base.main_company'))]"/>
            <field name="state">open</field>
            <field name="asset_group_id" ref="fusion_accounting.account_asset_group_demo"/>
        </record>
    </data>
</odoo>
