flectra/addons/account_asset/test/account_asset_demo_test.xml

132 lines
6.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data noupdate="1">
<!--
Asset Category Demo
-->
<record id="account_asset_category_fixedassets_test0" model="account.asset.category">
<field name="account_depreciation_id" ref="xfa"/>
<field name="account_depreciation_expense_id" ref="a_expense"/>
<field name="account_asset_id" ref="xfa"/>
<field name="journal_id" ref="expenses_journal"/>
<field name="name">Hardware - 3 Years</field>
<field name="method_number">3</field>
<field name="method_period">12</field>
<field name="open_asset">True</field>
</record>
<record id="account_asset_category_fixedassets_test1" model="account.asset.category">
<field name="account_depreciation_id" ref="xfa"/>
<field name="account_depreciation_expense_id" ref="a_expense"/>
<field name="account_asset_id" ref="xfa"/>
<field name="journal_id" ref="expenses_journal"/>
<field name="name">Cars - 5 Years</field>
<field name="method_number">5</field>
<field name="method_period">12</field>
</record>
<record id="account_asset_category_1" model="account.asset.category">
<field name="name">Furniture</field>
<field name="account_depreciation_id" ref="xfa"/>
<field name="account_depreciation_expense_id" ref="a_expense"/>
<field name="account_asset_id" ref="xfa"/>
<field name="journal_id" ref="expenses_journal"/>
<field name="method_time">number</field>
<field name="method_number">5</field>
<field name="method_period">12</field>
<field name="method">linear</field>
<field name="open_asset" eval="True"/>
</record>
<record id="account_asset_category_2" model="account.asset.category">
<field name="name">Electronics</field>
<field name="account_depreciation_id" ref="xfa"/>
<field name="account_depreciation_expense_id" ref="a_expense"/>
<field name="account_asset_id" ref="xfa"/>
<field name="journal_id" ref="expenses_journal"/>
<field name="method_time">number</field>
<field name="method_number">6</field>
<field name="method_period">12</field>
<field name="method">linear</field>
<field name="open_asset" eval="True"/>
</record>
<!--
Assets Demo
-->
<record id="account_asset_asset_vehicles_test0" model="account.asset.asset">
<field eval="2000.0" name="salvage_value"/>
<field name="state">open</field>
<field eval="12" name="method_period"/>
<field eval="5" name="method_number"/>
<field name="name">CEO's Car</field>
<field eval="12000.0" name="value"/>
<field name="category_id" ref="account_asset_category_fixedassets_test0"/>
</record>
<record id="account_asset_asset_cab_test0" model="account.asset.asset">
<field name="method_end" eval="(DateTime.now().replace(month=8, day=11) + timedelta(days=3*365)).strftime('%Y-%m-%d')"/>
<field eval="0.0" name="salvage_value"/>
<field name="method_time">end</field>
<field name="name">V6 Engine and 10 inches tires</field>
<field eval="2800.0" name="value"/>
<field name="category_id" ref="account_asset_category_fixedassets_test0"/>
</record>
<record id="account_asset_asset_office_test0" model="account.asset.asset">
<field name="prorata">purchase_date</field>
<field eval="100000.0" name="salvage_value"/>
<field name="state">open</field>
<field eval="12" name="method_period"/>
<field eval="3" name="method_number"/>
<field name="date" eval="time.strftime('%Y-01-01')"/>
<field name="name">Office</field>
<field eval="500000.0" name="value"/>
<field name="category_id" ref="account_asset_category_fixedassets_test0"/>
</record>
<record id="product_product_id_1" model="product.product">
<field name="name">Asset Product</field>
<field name="categ_id" ref="product.product_category_5"/>
<field name="standard_price">100</field>
<field name="list_price">150</field>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
<field name="description">Asset Product</field>
<field name="default_code">AP</field>
</record>
<record id="account_asset_1" model="account.asset.asset">
<field name="name">Asset 1</field>
<field name="product_id" ref="product_product_id_1"/>
<field name="category_id" ref="account_asset_category_1"/>
<field name="partner_id" ref="base.res_partner_1"/>
<field name="date" eval="time.strftime('%Y-%m-%d')"/>
<field name="value">50000</field>
<field name="salvage_value">10000</field>
<field name="method">linear</field>
<field name="method_number">5</field>
<field name="method_period">12</field>
<field name="prorata">first_january</field>
</record>
<record id="account_asset_2" model="account.asset.asset">
<field name="name">Asset 2</field>
<field name="product_id" ref="product_product_id_1"/>
<field name="category_id" ref="account_asset_category_2"/>
<field name="partner_id" ref="base.res_partner_1"/>
<field name="date" eval="time.strftime('%Y-%m-%d')"/>
<field name="value">40000</field>
<field name="salvage_value">10000</field>
<field name="method">linear</field>
<field name="method_number">5</field>
<field name="method_period">12</field>
<field name="prorata">fiscal_year</field>
</record>
</data>
</flectra>