demo_company.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_sg" model="res.partner">
  4. <field name="name">SG Company</field>
  5. <field name="vat">197401143C</field>
  6. <field name="l10n_sg_unique_entity_number">201131415A</field>
  7. <field name="street">Tyersall Avenue</field>
  8. <field name="city">Central Singapore</field>
  9. <field name="country_id" ref="base.sg"/>
  10. <field name="zip">248048</field>
  11. <field name="phone">+65 9123 4567</field>
  12. <field name="email">info@company.sg.example.com</field>
  13. <field name="website">www.sg.example.com</field>
  14. </record>
  15. <record id="demo_company_sg" model="res.company">
  16. <field name="name">SG Company</field>
  17. <field name="partner_id" ref="partner_demo_company_sg"/>
  18. </record>
  19. <function model="res.company" name="_onchange_country_id">
  20. <value eval="[ref('demo_company_sg')]"/>
  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_sg.demo_company_sg'))]}"/>
  25. </function>
  26. <function model="account.chart.template" name="try_loading">
  27. <value eval="[ref('l10n_sg.sg_chart_template')]"/>
  28. <value model="res.company" eval="obj().env.ref('l10n_sg.demo_company_sg')"/>
  29. </function>
  30. </odoo>