<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="partner_pos" model="res.partner">
        <field name="name">POS User</field>
        <field name="company_id" ref="base.main_company"/>
        <field name="street">3575  Buena Vista Avenue</field>
        <field name="city">Kharkiv</field>
        <field name="zip">61000</field>
        <field name="country_id" ref="base.ua"/>
        <field name="tz">Europe/Kiev</field>
        <field name="email">pos.user@example.com</field>
        <field name="phone">(057)-123-2334</field>
    </record>

    <record id="user_pos" model="res.users">
        <field name="partner_id" ref="pos_user_restrict.partner_pos"/>
        <field name="login">pos</field>
        <field name="password">pos</field>
        <field name="company_id" ref="base.main_company"/>
        <field name="groups_id" eval="[Command.set([ref('base.group_user'), ref('base.group_partner_manager'), ref('point_of_sale.group_pos_user')])]"/>
    </record>

</odoo>
