demo_company.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="partner_demo_company_de_skr04" model="res.partner">
  4. <field name="name">DE04 Company</field>
  5. <field name="vat">DE407959610</field>
  6. <field name="street">21 Turmstraße</field>
  7. <field name="city">Mitte</field>
  8. <field name="country_id" ref="base.de"/>
  9. <field name="zip">10559</field>
  10. <field name="phone">+49 1512 3456789</field>
  11. <field name="email">info@company.de_skr04example.com</field>
  12. <field name="website">www.de_skr04example.com</field>
  13. </record>
  14. <record id="demo_company_de_skr04" model="res.company">
  15. <field name="name">DE04 Company</field>
  16. <field name="partner_id" ref="partner_demo_company_de_skr04"/>
  17. </record>
  18. <function model="res.company" name="_onchange_country_id">
  19. <value eval="[ref('demo_company_de_skr04')]"/>
  20. </function>
  21. <function model="res.users" name="write">
  22. <value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
  23. <value eval="{'company_ids': [(4, ref('l10n_de_skr04.demo_company_de_skr04'))]}"/>
  24. </function>
  25. <function model="account.chart.template" name="try_loading">
  26. <value eval="[ref('l10n_de_skr04.l10n_chart_de_skr04')]"/>
  27. <value model="res.company" eval="obj().env.ref('l10n_de_skr04.demo_company_de_skr04')"/>
  28. </function>
  29. </odoo>