<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="base.partner_demo_company_mx" model="res.partner" forcecreate="1">
        <field name="name">INNOVACION VALOR Y DESARROLLO SA SA</field>
        <field name="vat">IVD920810GU2</field>
        <field name="street">Av. Francisco I. Madero Ote 313</field>
        <field name="zip">58000</field>
        <field name="city">Centro Histórico</field>
        <field name="state_id" ref="base.state_mx_mich"/>
        <field name="country_id" ref="base.mx"/>
        <field name="phone">+52 222 123 4567</field>
        <field name="email">info@company.mxexample.com</field>
        <field name="website">www.mxexample.com</field>
        <field name="is_company" eval="True"/>
    </record>

    <record id="base.demo_company_mx" model="res.company" forcecreate="1">
        <field name="name">INNOVACION VALOR Y DESARROLLO SA SA</field>
        <field name="partner_id" ref="base.partner_demo_company_mx"/>
    </record>

    <record id="base.demo_bank_mx" model="res.partner.bank" forcecreate="1">
        <field name="acc_number">0134567890</field>
        <field name="partner_id" ref="base.partner_demo_company_mx"/>
        <field name="company_id" ref="base.demo_company_mx"/>
        <field name="bank_id" ref="l10n_mx.acc_bank_014_SANTANDER"/>
        <field name="allow_out_payment" eval="True"/>
    </record>

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

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