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

      <record id="category_custom_credit_control" model="ir.module.category">
            <field name="name">Credit Control</field>
            <field name="description">Custom category for credit control groups</field>
        </record>

        <!-- Create your group -->
        <record id="group_account_credit_control_user" model="res.groups">
            <field name="name">User: For managing partner credit.</field>
            <field name="category_id" ref="category_custom_credit_control"/>
            <field name="implied_ids" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
            <field name="comment">The user will have access to all records of everyone in the sales application and approve orders with state of account_wait when necessary.</field>
        </record>

    </data>

    <data noupdate="1">
    	<record id="base.default_user" model="res.users">
	        <field name="groups_id" eval="[(4,ref('group_account_credit_control_user'))]"/>
	    </record>
    </data>
</odoo>