<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="base.partner_demo_company_fr" model="res.partner" forcecreate="1">
        <field name="name">FR Company</field>
        <field name="vat">FR91746948785</field>
        <field name="street">Rue Abbé Huet</field>
        <field name="city">Rennes</field>
        <field name="country_id" ref="base.fr"/>
        <field name="company_registry">96851575905808</field>

        <field name="zip">35043</field>
        <field name="phone">+33 6 12 34 56 78</field>
        <field name="email">info@company.frexample.com</field>
        <field name="website">www.frexample.com</field>
        <field name="is_company" eval="True"/>
    </record>

    <record id="base.demo_company_fr" model="res.company" forcecreate="1">
        <field name="name">FR Company</field>
        <field name="partner_id" ref="base.partner_demo_company_fr"/>
    </record>

    <record id="base.demo_bank_fr" model="res.partner.bank" forcecreate="1">
        <field name="acc_number">FR5730003000507963949549B56</field>
        <field name="partner_id" ref="base.partner_demo_company_fr"/>
        <field name="company_id" ref="base.demo_company_fr"/>
        <field name="allow_out_payment" eval="True"/>
    </record>

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