<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="base.partner_demo_company_ph" model="res.partner" forcecreate="1">
        <field name="name">PH Company</field>
        <field name="vat">123-456-789-01234</field>
        <field name="street">Quezon Blvd</field>
        <field name="city">Manila</field>
        <field name="country_id" ref="base.ph"/>
        <field name="zip">1001</field>
        <field name="phone">+63 45 187 7808</field>
        <field name="email">info@company.phexample.com</field>
        <field name="website">www.phexample.com</field>
    </record>

    <record id="base.demo_company_ph" model="res.company" forcecreate="1">
        <field name="name">PH Company</field>
        <field name="partner_id" ref="base.partner_demo_company_ph"/>
    </record>

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

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