demo_company.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_lu" model="res.partner">
  4. <field name="name">LU Company</field>
  5. <field name="vat">LU75425064</field>
  6. <field name="street">A</field>
  7. <field name="city">Clervaux</field>
  8. <field name="country_id" ref="base.lu"/>
  9. <field name="zip">9839</field>
  10. <field name="phone">+352 628 123 456</field>
  11. <field name="email">info@company.luexample.com</field>
  12. <field name="website">www.luexample.com</field>
  13. </record>
  14. <record id="demo_company_lu" model="res.company">
  15. <field name="name">LU Company</field>
  16. <field name="partner_id" ref="partner_demo_company_lu"/>
  17. </record>
  18. <function model="res.company" name="_onchange_country_id">
  19. <value eval="[ref('demo_company_lu')]"/>
  20. </function>
  21. <function model="res.users" name="write">
  22. <value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
  23. <value eval="{'company_ids': [(4, ref('l10n_lu.demo_company_lu'))]}"/>
  24. </function>
  25. <function model="account.chart.template" name="try_loading">
  26. <value eval="[ref('l10n_lu.lu_2011_chart_1')]"/>
  27. <value model="res.company" eval="obj().env.ref('l10n_lu.demo_company_lu')"/>
  28. </function>
  29. </odoo>