demo_company.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_si" model="res.partner">
  4. <field name="name">SI Company</field>
  5. <field name="vat">SI33331464</field>
  6. <field name="street">39 Jamova cesta</field>
  7. <field name="city">Ljubljana</field>
  8. <field name="country_id" ref="base.si"/>
  9. <field name="zip">1102</field>
  10. <field name="phone">+386 31 234 567</field>
  11. <field name="email">info@company.siexample.com</field>
  12. <field name="website">www.siexample.com</field>
  13. </record>
  14. <record id="demo_company_si" model="res.company">
  15. <field name="name">SI Company</field>
  16. <field name="partner_id" ref="partner_demo_company_si"/>
  17. </record>
  18. <function model="res.company" name="_onchange_country_id">
  19. <value eval="[ref('demo_company_si')]"/>
  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_si.demo_company_si'))]}"/>
  24. </function>
  25. <function model="account.chart.template" name="try_loading">
  26. <value eval="[ref('l10n_si.gd_chart')]"/>
  27. <value model="res.company" eval="obj().env.ref('l10n_si.demo_company_si')"/>
  28. </function>
  29. </odoo>