311 lines
16 KiB
XML
311 lines
16 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<odoo>
|
||
|
<data noupdate="0">
|
||
|
|
||
|
<!-- This should be loaded for non python tests in other modules that require accounting test data but that don't depend on any localization -->
|
||
|
|
||
|
<record id="base.main_company" model="res.company">
|
||
|
<field name="bank_account_code_prefix">X1100</field>
|
||
|
<field name="accounts_code_digits">7</field>
|
||
|
</record>
|
||
|
|
||
|
<!--
|
||
|
Chart of Accounts
|
||
|
-->
|
||
|
|
||
|
<!-- Balance Sheet -->
|
||
|
|
||
|
|
||
|
<record id="xfa" model="account.account">
|
||
|
<field name="code">X1000</field>
|
||
|
<field name="name">Fixed Assets - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_fixed_assets"/>
|
||
|
</record>
|
||
|
<record id="cas" model="account.account">
|
||
|
<field name="code">X1010</field>
|
||
|
<field name="name">Current Assets - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_current_assets"/>
|
||
|
</record>
|
||
|
<record id="stk" model="account.account">
|
||
|
<field name="code">X1011</field>
|
||
|
<field name="name">Purchased Stocks - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_current_assets"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.demo_stock_account')])]"/>
|
||
|
</record>
|
||
|
<record id="a_recv" model="account.account">
|
||
|
<field name="code">X1012</field>
|
||
|
<field name="name">Debtors - (test)</field>
|
||
|
<field eval="True" name="reconcile"/>
|
||
|
<field name="user_type_id" ref="account.data_account_type_receivable"/>
|
||
|
</record>
|
||
|
<record id="ova" model="account.account">
|
||
|
<field name="code">X1013</field>
|
||
|
<field name="name">VAT Paid- (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_current_assets"/>
|
||
|
</record>
|
||
|
<record id="bnk" model="account.account">
|
||
|
<field name="code">X1014</field>
|
||
|
<field name="name">Bank Current Account - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_liquidity"/>
|
||
|
</record>
|
||
|
<record id="cash" model="account.account">
|
||
|
<field name="code">X1015</field>
|
||
|
<field name="name">Cash - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_liquidity"/>
|
||
|
</record>
|
||
|
<record id="o_income" model="account.account">
|
||
|
<field name="code">X1016</field>
|
||
|
<field name="name">Opening Income - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_other_income"/>
|
||
|
</record>
|
||
|
<record id="usd_bnk" model="account.account">
|
||
|
<field name="code">X1017</field>
|
||
|
<field name="name">USD Bank Account - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_liquidity"/>
|
||
|
<field name="currency_id" ref="base.USD"/>
|
||
|
</record>
|
||
|
<record id="transfer_account" model="account.account">
|
||
|
<field name="code">X1019</field>
|
||
|
<field name="name">Internal Transfert Account - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_current_assets"/>
|
||
|
<field name="reconcile">1</field>
|
||
|
</record>
|
||
|
<record id="ncas" model="account.account">
|
||
|
<field name="code">X1020</field>
|
||
|
<field name="name">Non-current Assets - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_non_current_assets"/>
|
||
|
</record>
|
||
|
<record id="prepayements" model="account.account">
|
||
|
<field name="code">X1030</field>
|
||
|
<field name="name">Prepayments - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_prepayments"/>
|
||
|
</record>
|
||
|
<record id="current_liabilities" model="account.account">
|
||
|
<field name="code">X1110</field>
|
||
|
<field name="name">Current Liabilities - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_current_liabilities"/>
|
||
|
</record>
|
||
|
<record id="a_pay" model="account.account">
|
||
|
<field name="code">X1111</field>
|
||
|
<field name="name">Creditors - (test)</field>
|
||
|
<field eval="True" name="reconcile"/>
|
||
|
<field name="user_type_id" ref="account.data_account_type_payable"/>
|
||
|
</record>
|
||
|
|
||
|
<record id="iva" model="account.account">
|
||
|
<field name="code">X1112</field>
|
||
|
<field name="name">VAT Received - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_current_liabilities"/>
|
||
|
</record>
|
||
|
|
||
|
<record id="rsa" model="account.account">
|
||
|
<field name="code">X1113</field>
|
||
|
<field name="name">Reserve and Profit/Loss - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_current_liabilities"/>
|
||
|
</record>
|
||
|
|
||
|
<record id="cas" model="account.account">
|
||
|
<field name="code">X1120</field>
|
||
|
<field name="name">Non-current Liabilities - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_non_current_liabilities"/>
|
||
|
</record>
|
||
|
<record id="o_expense" model="account.account">
|
||
|
<field name="code">X1114</field>
|
||
|
<field name="name">Opening Expense - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_expenses"/>
|
||
|
</record>
|
||
|
|
||
|
<!-- Profit and Loss -->
|
||
|
|
||
|
<record model="account.account" id="income_fx_income">
|
||
|
<field name="name">Foreign Exchange Gain - (test)</field>
|
||
|
<field name="code">X2010</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_revenue"/>
|
||
|
<field name="reconcile" eval="False"/>
|
||
|
</record>
|
||
|
<record id="a_sale" model="account.account">
|
||
|
<field name="code">X2020</field>
|
||
|
<field name="name">Product Sales - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_revenue"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]"/>
|
||
|
</record>
|
||
|
<record id="a_sale_invest" model="account.account">
|
||
|
<field name="code">X2021</field>
|
||
|
<field name="name">Sale of Lands - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_revenue"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_investing')])]"/>
|
||
|
</record>
|
||
|
<record id="a_sale_finance" model="account.account">
|
||
|
<field name="code">X2022</field>
|
||
|
<field name="name">Bank Accounts Interests - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_revenue"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_financing')])]"/>
|
||
|
</record>
|
||
|
<record id="cog" model="account.account">
|
||
|
<field name="code">X2030</field>
|
||
|
<field name="name">Cost of Goods Sold - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_direct_costs"/>
|
||
|
</record>
|
||
|
|
||
|
<record model="account.account" id="income_fx_expense">
|
||
|
<field name="name">Foreign Exchange Loss - (test)</field>
|
||
|
<field name="code">X2110</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_expenses"/>
|
||
|
<field name="reconcile" eval="False"/>
|
||
|
</record>
|
||
|
<record id="a_expense" model="account.account">
|
||
|
<field name="code">X2120</field>
|
||
|
<field name="name">Expenses - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_expenses"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]"/>
|
||
|
</record>
|
||
|
<record id="a_salary_expense" model="account.account">
|
||
|
<field name="code">X2121</field>
|
||
|
<field name="name">Salary Expenses - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_expenses"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]"/>
|
||
|
</record>
|
||
|
<record id="a_expense_invest" model="account.account">
|
||
|
<field name="code">X2122</field>
|
||
|
<field name="name">Purchase of Equipments - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_fixed_assets"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_investing')])]"/>
|
||
|
</record>
|
||
|
<record id="a_expense_finance" model="account.account">
|
||
|
<field name="code">X2123</field>
|
||
|
<field name="name">Bank Fees - (test)</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_expenses"/>
|
||
|
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_financing')])]"/>
|
||
|
</record>
|
||
|
<record id="a_capital" model="account.account">
|
||
|
<field name="code">X3001</field>
|
||
|
<field name="name">Capital</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_equity"/>
|
||
|
</record>
|
||
|
<record id="a_dividends" model="account.account">
|
||
|
<field name="code">X3002</field>
|
||
|
<field name="name">Dividends</field>
|
||
|
<field name="user_type_id" ref="account.data_account_type_equity"/>
|
||
|
</record>
|
||
|
<record id="a_current_year_earnings" model="account.account">
|
||
|
<field name="code">X0000</field>
|
||
|
<field name="name">Unaffected Earnings</field>
|
||
|
<field name="user_type_id" ref="account.data_unaffected_earnings"/>
|
||
|
</record>
|
||
|
|
||
|
<!-- Properties -->
|
||
|
<record forcecreate="True" id="property_account_receivable_id" model="ir.property">
|
||
|
<field name="name">property_account_receivable_id</field>
|
||
|
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_account_receivable_id')]"/>
|
||
|
<field eval="'account.account,'+str(a_recv)" name="value"/>
|
||
|
<field name="company_id" ref="base.main_company"/>
|
||
|
</record>
|
||
|
<record forcecreate="True" id="property_account_payable_id" model="ir.property">
|
||
|
<field name="name">property_account_payable_id</field>
|
||
|
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_account_payable_id')]"/>
|
||
|
<field eval="'account.account,'+str(a_pay)" name="value"/>
|
||
|
<field name="company_id" ref="base.main_company"/>
|
||
|
</record>
|
||
|
<record forcecreate="True" id="property_account_position_id" model="ir.property">
|
||
|
<field name="name">property_account_position_id</field>
|
||
|
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_account_position_id')]"/>
|
||
|
<field eval="False" name="value"/>
|
||
|
<field name="company_id" ref="base.main_company"/>
|
||
|
</record>
|
||
|
|
||
|
<!--
|
||
|
Account Journal
|
||
|
-->
|
||
|
|
||
|
<record id="sales_journal" model="account.journal">
|
||
|
<field name="name">Customer Invoices - Test</field>
|
||
|
<field name="code">TINV</field>
|
||
|
<field name="type">sale</field>
|
||
|
<field name="default_credit_account_id" ref="a_sale"/>
|
||
|
<field name="default_debit_account_id" ref="a_sale"/>
|
||
|
<field name="refund_sequence" eval="True"/>
|
||
|
</record>
|
||
|
|
||
|
<record id="expenses_journal" model="account.journal">
|
||
|
<field name="name">Vendor Bills - Test</field>
|
||
|
<field name="code">TEXJ</field>
|
||
|
<field name="type">purchase</field>
|
||
|
<field name="default_debit_account_id" ref="a_expense"/>
|
||
|
<field name="default_credit_account_id" ref="a_expense"/>
|
||
|
<field name="refund_sequence" eval="True"/>
|
||
|
</record>
|
||
|
|
||
|
<record id="bank_account" model="res.partner.bank">
|
||
|
<field name="acc_number">987654321</field>
|
||
|
<field name="acc_type">bank</field>
|
||
|
<field name="bank_name">Bank</field>
|
||
|
<field name="partner_id" ref="base.main_partner"/>
|
||
|
</record>
|
||
|
<record id="bank_journal" model="account.journal">
|
||
|
<field name="name">Bank - Test</field>
|
||
|
<field name="code">TBNK</field>
|
||
|
<field name="type">bank</field>
|
||
|
<field name="default_debit_account_id" ref="bnk"/>
|
||
|
<field name="default_credit_account_id" ref="bnk"/>
|
||
|
</record>
|
||
|
<record id="cash_journal" model="account.journal">
|
||
|
<field name="name">Cash - Test</field>
|
||
|
<field name="code">TCSH</field>
|
||
|
<field name="type">cash</field>
|
||
|
<field name="profit_account_id" ref="rsa" />
|
||
|
<field name="loss_account_id" ref="rsa" />
|
||
|
<field name="default_debit_account_id" ref="cash"/>
|
||
|
<field name="default_credit_account_id" ref="cash"/>
|
||
|
</record>
|
||
|
<record id="miscellaneous_journal" model="account.journal">
|
||
|
<field name="name">Miscellaneous - Test</field>
|
||
|
<field name="code">TMIS</field>
|
||
|
<field name="type">general</field>
|
||
|
<field name="show_on_dashboard" eval="False"/>
|
||
|
</record>
|
||
|
<record id="currency_diff_journal" model="account.journal">
|
||
|
<field name="name">Currency Difference - Test</field>
|
||
|
<field name="code">CUR</field>
|
||
|
<field name="type">general</field>
|
||
|
<field name="default_debit_account_id" ref="income_fx_income"/>
|
||
|
<field name="default_credit_account_id" ref="income_fx_expense"/>
|
||
|
<field name="show_on_dashboard" eval="False"/>
|
||
|
</record>
|
||
|
|
||
|
<record id="bank_account_usd" model="res.partner.bank">
|
||
|
<field name="acc_number">123456789</field>
|
||
|
<field name="acc_type">bank</field>
|
||
|
<field name="bank_name">Bank US</field>
|
||
|
<field name="partner_id" ref="base.main_partner"/>
|
||
|
</record>
|
||
|
<record id="bank_journal_usd" model="account.journal">
|
||
|
<field name="name">USD Bank - Test</field>
|
||
|
<field name="code">TUBK</field>
|
||
|
<field name="type">bank</field>
|
||
|
<field name="default_debit_account_id" ref="usd_bnk"/>
|
||
|
<field name="default_credit_account_id" ref="usd_bnk"/>
|
||
|
<field name="currency_id" ref="base.USD"/>
|
||
|
<field name="bank_account_id" ref="bank_account_usd"/>
|
||
|
</record>
|
||
|
<record id="base.main_company" model="res.company">
|
||
|
<field name="currency_exchange_journal_id" ref="currency_diff_journal"/>
|
||
|
</record>
|
||
|
<!--
|
||
|
Product income and expense accounts, default parameters
|
||
|
-->
|
||
|
|
||
|
<record id="property_account_expense_categ_id" model="ir.property">
|
||
|
<field name="name">property_account_expense_categ_id</field>
|
||
|
<field name="fields_id" search="[('model','=','product.category'),('name','=','property_account_expense_categ_id')]"/>
|
||
|
<field eval="'account.account,'+str(ref('a_expense'))" name="value"/>
|
||
|
<field name="company_id" ref="base.main_company"/>
|
||
|
</record>
|
||
|
<record id="property_account_income_categ_id" model="ir.property">
|
||
|
<field name="name">property_account_income_categ_id</field>
|
||
|
<field name="fields_id" search="[('model','=','product.category'),('name','=','property_account_income_categ_id')]"/>
|
||
|
<field eval="'account.account,'+str(ref('a_sale'))" model="account.account" name="value"/>
|
||
|
<field name="company_id" ref="base.main_company"/>
|
||
|
</record>
|
||
|
</data>
|
||
|
</odoo>
|