<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="base.partner_demo_company_be" model="res.partner" forcecreate="1">
        <field name="name">BE Company CoA</field>
        <field name="vat">BE0246697724</field>
        <field name="street">1021 Sint-Bernardsesteenweg</field>
        <field name="city">Antwerpen</field>
        <field name="country_id" ref="base.be"/>
        <field name="zip">2660</field>
        <field name="phone">+32 470 12 34 56</field>
        <field name="email">becompany@example.com</field>
        <field name="website">www.becompany.example.com</field>
        <field name="is_company" eval="True"/>
    </record>

    <record id="base.demo_company_be" model="res.company" forcecreate="1">
        <field name="name">BE Company CoA</field>
        <field name="partner_id" ref="base.partner_demo_company_be"/>
    </record>

    <record id="base.demo_bank_be" model="res.partner.bank" forcecreate="1">
        <field name="acc_number">BE76429468789995</field>
        <field name="partner_id" ref="base.partner_demo_company_be"/>
        <field name="company_id" ref="base.demo_company_be"/>
        <field name="allow_out_payment" eval="True"/>
    </record>

    <function model="res.company" name="_onchange_country_id">
        <value eval="[ref('base.demo_company_be')]"/>
    </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_be'))]}"/>
    </function>

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