demo_company.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_jp" model="res.partner">
  4. <field name="name">JP Company</field>
  5. <field name="vat">7482543580381</field>
  6. <field name="street">池上通り</field>
  7. <field name="city">品川区</field>
  8. <field name="country_id" ref="base.jp"/>
  9. <field name="state_id" ref="base.state_jp_jp-19"/>
  10. <field name="zip">140-0004</field>
  11. <field name="phone">+81 90-1234-5678</field>
  12. <field name="email">info@company.jpexample.com</field>
  13. <field name="website">www.jpexample.com</field>
  14. </record>
  15. <record id="demo_company_jp" model="res.company">
  16. <field name="name">JP Company</field>
  17. <field name="partner_id" ref="partner_demo_company_jp"/>
  18. </record>
  19. <function model="res.company" name="_onchange_country_id">
  20. <value eval="[ref('demo_company_jp')]"/>
  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_jp.demo_company_jp'))]}"/>
  25. </function>
  26. <function model="account.chart.template" name="try_loading">
  27. <value eval="[ref('l10n_jp.l10n_jp_chart_template')]"/>
  28. <value model="res.company" eval="obj().env.ref('l10n_jp.demo_company_jp')"/>
  29. </function>
  30. </odoo>