demo_company.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_cl" model="res.partner">
  4. <field name="name">CL Company</field>
  5. <field name="vat">CL22060449-7</field>
  6. <field name="l10n_latam_identification_type_id" ref="l10n_cl.it_RUT"/>
  7. <field name="l10n_cl_sii_taxpayer_type">1</field>
  8. <field name="street">1</field>
  9. <field name="city">Santiago</field>
  10. <field name="country_id" ref="base.cl"/>
  11. <field name="state_id" ref="base.state_cl_13"/>
  12. <field name="zip"></field>
  13. <field name="phone">+57 321 1234567</field>
  14. <field name="email">info@company.clexample.com</field>
  15. <field name="website">www.clexample.com</field>
  16. </record>
  17. <record id="demo_company_cl" model="res.company">
  18. <field name="name">CL Company</field>
  19. <field name="partner_id" ref="partner_demo_company_cl"/>
  20. </record>
  21. <function model="res.company" name="_onchange_country_id">
  22. <value eval="[ref('demo_company_cl')]"/>
  23. </function>
  24. <function model="res.users" name="write">
  25. <value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
  26. <value eval="{'company_ids': [(4, ref('l10n_cl.demo_company_cl'))]}"/>
  27. </function>
  28. <function model="account.chart.template" name="try_loading">
  29. <value eval="[ref('l10n_cl.cl_chart_template')]"/>
  30. <value model="res.company" eval="obj().env.ref('l10n_cl.demo_company_cl')"/>
  31. </function>
  32. </odoo>