<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="partner_demo_company_tg" model="res.partner">
        <field name="name">TG Company</field>
        <field name="vat"></field>
        <field name="street"></field>
        <field name="city"></field>
        <field name="country_id" ref="base.tg"/>

        <field name="zip"></field>
        <field name="phone">+228 9 020 5793</field>
        <field name="email">info@company.togoexample.com</field>
        <field name="website">www.togoexample.com</field>
    </record>

    <record id="demo_company_tg" model="res.company">
        <field name="name">TG Company</field>
        <field name="partner_id" ref="partner_demo_company_tg"/>
    </record>

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

    <function model="account.chart.template" name="try_loading">
        <value eval="[]"/>
        <value>tg</value>
        <value model="res.company" eval="obj().env.ref('l10n_tg.demo_company_tg')"/>
    </function>
</odoo>
