<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="base.partner_demo_company_it" model="res.partner" forcecreate="1">
        <field name="name">IT Company</field>
        <field name="vat">IT09814700101</field>
        <field name="street">Almenweg</field>
        <field name="city">Kastelbell-Tschars - Castelbello-Ciardes</field>
        <field name="country_id" ref="base.it"/>
        <field name="state_id" ref="base.state_it_vt"/>
        <field name="zip">39020</field>
        <field name="phone">+39 312 345 6789</field>
        <field name="email">info@company.itexample.com</field>
        <field name="website">www.itexample.com</field>
        <field name="is_company" eval="True"/>
    </record>

    <record id="base.demo_company_it" model="res.company" forcecreate="1">
        <field name="name">IT Company</field>
        <field name="partner_id" ref="base.partner_demo_company_it"/>
    </record>

    <record id="base.demo_bank_it" model="res.partner.bank" forcecreate="1">
        <field name="acc_number">IT15O0300203280948111571821</field>
        <field name="partner_id" ref="base.partner_demo_company_it"/>
        <field name="company_id" ref="base.demo_company_it"/>
    </record>

    <function model="res.company" name="_onchange_country_id">
        <value eval="[ref('base.demo_company_it')]"/>
    </function>

    <function model="res.users" name="write">
        <value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
        <value eval="{'company_ids': [(4, ref('base.demo_company_it'))]}"/>
    </function>

    <function model="account.chart.template" name="try_loading">
        <value eval="[]"/>
        <value>it</value>
        <value model="res.company" eval="obj().env.ref('base.demo_company_it')"/>
        <value name="install_demo" eval="True"/>
    </function>
</odoo>
