<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="partner_followup_form_view" model="ir.ui.view">
        <field name="name">partner.credit_control.form.view</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="account.view_partner_property_form"/>
        <field name="groups_id" eval="[(4, ref('account_credit_control.group_account_credit_control_manager')), (4, ref('account_credit_control.group_account_credit_control_user'))]"/>
        <field name="arch" type="xml">
            <field name="credit" position="after">
                <field name="credit_policy_id" widget="selection"/>
            </field>
        </field>
    </record>

    <act_window
            id="act_partner_credit_relation_relation"
            name="Credit Lines"
            groups="account_credit_control.group_account_credit_control_manager,account_credit_control.group_account_credit_control_user"
            domain="[('partner_id', '=',  active_id)]"
            res_model="credit.control.line"
            src_model="res.partner"/>

</odoo>
