<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="partner_demo_company_hu" model="res.partner">
        <field name="name">HU Company</field>
        <field name="street">Kitaibel Pál utca</field>
        <field name="city">Budapest</field>
        <field name="zip">1022</field>
        <field name="country_id" ref="base.hu"/>
        <field name="phone">+36 20 123 4567</field>
        <field name="email">info@company.huexample.com</field>
        <field name="website">www.huexample.com</field>
        <field name="vat">HU12345676</field>
    </record>

    <record id="demo_company_hu" model="res.company">
        <field name="name">HU Company</field>
        <field name="partner_id" ref="partner_demo_company_hu"/>
    </record>

    <record id="demo_bank_hu" model="res.partner.bank">
        <field name="acc_number">HU55107000247733442327874189</field>
        <field name="partner_id" ref="partner_demo_company_hu"/>
        <field name="company_id" ref="demo_company_hu"/>
    </record>

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

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