<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="partner_demo_company_ug" model="res.partner">
        <field name="name">UG Company</field>
        <field name="vat">1234567890</field>
        <field name="street">Mutesa 1 Road</field>
        <field name="city">Kampala</field>
        <field name="country_id" ref="base.ug"/>
        
        <field name="zip">10101</field>
        <field name="phone">+256 77 403614</field>
        <field name="email">info@company.ugexample.com</field>
        <field name="website">www.ugexample.com</field>
    </record>

    <record id="demo_company_ug" model="res.company">
        <field name="name">UG Company</field>
        <field name="partner_id" ref="partner_demo_company_ug"/>
    </record>

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

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