<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="partner_demo_company_mt" model="res.partner">
        <field name="name">MT Company</field>
        <field name="vat">MT12345634</field>
        <field name="street">St. Elmo Place</field>
        <field name="city">Valletta</field>
        <field name="country_id" ref="base.mt"/>
        <field name="zip">1155</field>
        <field name="phone">+356 2123 1998</field>
        <field name="email">info@company.mtexample.com</field>
        <field name="website">www.mtexample.com</field>
    </record>

    <record id="demo_company_mt" model="res.company">
        <field name="name">MT Company</field>
        <field name="partner_id" ref="partner_demo_company_mt"/>
    </record>

    <record id="demo_bank_mt" model="res.partner.bank">
        <field name="acc_number">MT84MALT011000012345MTLCAST001S</field>
        <field name="partner_id" ref="partner_demo_company_mt"/>
        <field name="company_id" ref="demo_company_mt"/>
    </record>

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

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