demo_company.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_my" model="res.partner">
  4. <field name="name">MY Company</field>
  5. <field name="vat">MY647828492048102</field>
  6. <field name="street">1 Wisma Dato Dagang</field>
  7. <field name="street2">Jln Raja Alang Kampung Bahru Mala</field>
  8. <field name="city">Kuala Lumpur</field>
  9. <field name="country_id" ref="base.my"/>
  10. <field name="state_id" ref="base.state_my_kul"/>
  11. <field name="zip">50300</field>
  12. <field name="phone">+60 0326921917</field>
  13. <field name="email">info@company.myexample.com</field>
  14. <field name="website">www.myexample.com</field>
  15. </record>
  16. <record id="demo_company_my" model="res.company">
  17. <field name="name">MY Company</field>
  18. <field name="partner_id" ref="partner_demo_company_my"/>
  19. </record>
  20. <function model="res.company" name="_onchange_country_id">
  21. <value eval="[ref('demo_company_my')]"/>
  22. </function>
  23. <function model="res.users" name="write">
  24. <value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
  25. <value eval="{'company_ids': [(4, ref('l10n_my.demo_company_my'))]}"/>
  26. </function>
  27. <function model="account.chart.template" name="try_loading">
  28. <value eval="[ref('l10n_my.l10n_my_chart_template')]"/>
  29. <value model="res.company" eval="obj().env.ref('l10n_my.demo_company_my')"/>
  30. </function>
  31. </odoo>