demo_company.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_vn" model="res.partner">
  4. <field name="name">VN Company</field>
  5. <field name="vat"></field>
  6. <field name="street">Lê A</field>
  7. <field name="city">Phường Bảo Vinh</field>
  8. <field name="country_id" ref="base.vn"/>
  9. <field name="state_id" ref="base.state_vn_VN-06"/>
  10. <field name="zip">76463</field>
  11. <field name="phone">+84 91 234 56 78</field>
  12. <field name="email">info@company.vnexample.com</field>
  13. <field name="website">www.vnexample.com</field>
  14. </record>
  15. <record id="demo_company_vn" model="res.company">
  16. <field name="name">VN Company</field>
  17. <field name="partner_id" ref="partner_demo_company_vn"/>
  18. </record>
  19. <function model="res.company" name="_onchange_country_id">
  20. <value eval="[ref('demo_company_vn')]"/>
  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_vn.demo_company_vn'))]}"/>
  25. </function>
  26. <function model="account.chart.template" name="try_loading">
  27. <value eval="[ref('l10n_vn.vn_template')]"/>
  28. <value model="res.company" eval="obj().env.ref('l10n_vn.demo_company_vn')"/>
  29. </function>
  30. </odoo>