2
0
account-financial-tools/account_asset_management/tests/account_asset_test_data.xml

71 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="account_fiscal_year_current" model="account.fiscal.year">
<field name="name">FY_assets</field>
<field name="date_from" eval="time.strftime('%Y-01-01')"/>
<field name="date_to" eval="time.strftime('%Y-12-31')"/>
<field name="company_id" ref="base.main_company"/>
</record>
<record id="account_fiscal_year_previous" model="account.fiscal.year">
<field name="name">FY_assets previous</field>
<field name="date_from" eval="(datetime.now() - relativedelta(years=1, month=1, day=1)).strftime('%Y-%m-%d')"/>
<field name="date_to" eval="(datetime.now() - relativedelta(years=1, month=12, day=31)).strftime('%Y-%m-%d')"/>
<field name="company_id" ref="base.main_company"/>
</record>
<!-- Asset profiles -->
<record id="account_asset_profile_ict_3Y" model="account.asset.profile">
<field name="account_expense_depreciation_id" ref="account.a_expense"/>
<field name="account_asset_id" ref="account.xfa"/>
<field name="account_depreciation_id" ref="account.xfa"/>
<field name="journal_id" ref="account.expenses_journal"/>
<field name="name">Hardware - 3 Years</field>
<field name="method_time">year</field>
<field name="method_number" eval="3"/>
<field name="method_period">year</field>
</record>
<record id="account_asset_profile_car_5Y" model="account.asset.profile">
<field name="account_expense_depreciation_id" ref="account.a_expense"/>
<field name="account_asset_id" ref="account.xfa"/>
<field name="account_depreciation_id" ref="account.xfa"/>
<field name="journal_id" ref="account.expenses_journal"/>
<field name="name">Cars - 5 Years</field>
<field name="method_time">year</field>
<field name="method_number" eval="5"/>
<field name="method_period">year</field>
</record>
<!-- Assets -->
<record id="account_asset_asset_ict0" model="account.asset">
<field name="state">draft</field>
<field name="method_time">year</field>
<field name="method_number" eval="3"/>
<field name="method_period">year</field>
<field name="date_start" eval="time.strftime('%Y-01-01')"/>
<field name="name">Laptop</field>
<field name="code">PI00101</field>
<field name="purchase_value" eval="1500.0"/>
<field name="profile_id" ref="account_asset_profile_ict_3Y"/>
</record>
<record id="account_asset_asset_vehicle0" model="account.asset">
<field name="state">draft</field>
<field name="method_time">year</field>
<field name="method_number" eval="5"/>
<field name="method_period">year</field>
<field name="date_start" eval="time.strftime('%Y-01-01')"/>
<field name="name">CEO's Car</field>
<field name="purchase_value" eval="12000.0"/>
<field name="salvage_value" eval="2000.0"/>
<field name="profile_id" ref="account_asset_profile_car_5Y"/>
</record>
</data>
</odoo>