demo_company.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_za" model="res.partner">
  4. <field name="name">ZA Company</field>
  5. <field name="vat"></field>
  6. <field name="street">A</field>
  7. <field name="city">Cape Town</field>
  8. <field name="country_id" ref="base.za"/>
  9. <field name="state_id" ref="base.state_za_wc"/>
  10. <field name="zip">7845</field>
  11. <field name="phone">+27 71 123 4567</field>
  12. <field name="email">info@company.zaexample.com</field>
  13. <field name="website">www.zaexample.com</field>
  14. </record>
  15. <record id="demo_company_za" model="res.company">
  16. <field name="name">ZA Company</field>
  17. <field name="partner_id" ref="partner_demo_company_za"/>
  18. </record>
  19. <function model="res.company" name="_onchange_country_id">
  20. <value eval="[ref('demo_company_za')]"/>
  21. </function>
  22. <function model="res.users" name="write">
  23. <value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
  24. <value eval="{'company_ids': [(4, ref('l10n_za.demo_company_za'))]}"/>
  25. </function>
  26. <function model="account.chart.template" name="try_loading">
  27. <value eval="[ref('l10n_za.default_chart_template')]"/>
  28. <value model="res.company" eval="obj().env.ref('l10n_za.demo_company_za')"/>
  29. </function>
  30. </odoo>