account_demo.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <!-- TAGS FOR RETRIEVING THE DEMO ACCOUNTS -->
  5. <record id="demo_capital_account" model="account.account.tag">
  6. <field name="name">Demo Capital Account</field>
  7. </record>
  8. <record id="demo_stock_account" model="account.account.tag">
  9. <field name="name">Demo Stock Account</field>
  10. </record>
  11. <record id="demo_sale_of_land_account" model="account.account.tag">
  12. <field name="name">Demo Sale of Land Account</field>
  13. </record>
  14. <record id="demo_ceo_wages_account" model="account.account.tag">
  15. <field name="name">Demo CEO Wages Account</field>
  16. </record>
  17. <record id="demo_office_furniture_account" model="account.account.tag">
  18. <field name="name">Office Furniture</field>
  19. </record>
  20. <!-- Payment Terms -->
  21. <record id="account_payment_term_advance" model="account.payment.term">
  22. <field name="name">30% Advance End of Following Month</field>
  23. <field name="note">Payment terms: 30% Advance End of Following Month</field>
  24. <field name="line_ids" eval="[
  25. Command.clear(),
  26. Command.create({'value': 'percent', 'value_amount': 30.0, 'days': 0}),
  27. Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 1, 'end_month': True})]"/>
  28. </record>
  29. <record id="base.user_demo" model="res.users">
  30. <field name="groups_id" eval="[(4,ref('account.group_account_invoice'))]"/>
  31. </record>
  32. <!-- Add Payment terms on some demo partners -->
  33. <record id="base.res_partner_2" model="res.partner">
  34. <field name="property_payment_term_id" ref="account.account_payment_term_30days"/>
  35. </record>
  36. <record id="base.res_partner_12" model="res.partner">
  37. <field name="property_payment_term_id" ref="account.account_payment_term_end_following_month"/>
  38. <field name="property_supplier_payment_term_id" ref="account.account_payment_term_end_following_month"/>
  39. </record>
  40. <record id="base.res_partner_4" model="res.partner">
  41. <field name="property_supplier_payment_term_id" ref="account.account_payment_term_30days"/>
  42. </record>
  43. <record id="base.res_partner_1" model="res.partner">
  44. <field name="property_supplier_payment_term_id" ref="account.account_payment_term_end_following_month"/>
  45. </record>
  46. <!-- Analytic -->
  47. <record id="analytic.analytic_plan_internal" model="account.analytic.plan">
  48. <field name="applicability_ids" eval="[
  49. Command.create({
  50. 'business_domain': 'invoice',
  51. 'account_prefix': '450000',
  52. 'applicability': 'mandatory'})]"/>
  53. </record>
  54. </data>
  55. </odoo>