demo_company.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_cn" model="res.partner">
  4. <field name="name">CN Company</field>
  5. <field name="vat"></field>
  6. <field name="street">德政中路</field>
  7. <field name="city">大塘街道</field>
  8. <field name="country_id" ref="base.cn"/>
  9. <field name="state_id" ref="base.state_cn_MO"/>
  10. <field name="zip">510375</field>
  11. <field name="phone">+86 131 2345 6789</field>
  12. <field name="email">info@company.cnexample.com</field>
  13. <field name="website">www.cnexample.com</field>
  14. </record>
  15. <record id="demo_company_cn" model="res.company">
  16. <field name="name">CN Company</field>
  17. <field name="partner_id" ref="partner_demo_company_cn"/>
  18. </record>
  19. <function model="res.company" name="_onchange_country_id">
  20. <value eval="[ref('demo_company_cn')]"/>
  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_cn.demo_company_cn'))]}"/>
  25. </function>
  26. <function model="account.chart.template" name="try_loading">
  27. <value eval="[ref('l10n_cn.l10n_chart_china_small_business')]"/>
  28. <value model="res.company" eval="obj().env.ref('l10n_cn.demo_company_cn')"/>
  29. </function>
  30. </odoo>