<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
    <!-- Sale order -->
    <record
        id="sale_order_tier_validation_requested"
        model="mail.message.subtype"
        forcecreate="1"
    >
        <field name="name">Tier Validation Requested</field>
        <field name="res_model">sale.order</field>
        <field name="internal">True</field>
    </record>
    <record
        id="sale_order_tier_validation_accepted"
        model="mail.message.subtype"
        forcecreate="1"
    >
        <field name="name">Tier Validation Accepted Notification</field>
        <field name="res_model">sale.order</field>
        <field name="internal">True</field>
    </record>
    <record
        id="sale_order_tier_validation_rejected"
        model="mail.message.subtype"
        forcecreate="1"
    >
        <field name="name">Tier Validation Rejected Notification</field>
        <field name="res_model">sale.order</field>
        <field name="internal">True</field>
    </record>
    <!--  CRM Team  -->
    <record
        id="crm_team_tier_validation_requested"
        model="mail.message.subtype"
        forcecreate="1"
    >
        <field name="name">Tier Validation Requested</field>
        <field name="res_model">crm.team</field>
        <field name="default" eval="True" />
        <field name="internal">True</field>
        <field
            name="parent_id"
            ref="sale_tier_validation.sale_order_tier_validation_requested"
        />
        <field name="relation_field">team_id</field>
    </record>
    <record
        id="crm_team_tier_validation_accepted"
        model="mail.message.subtype"
        forcecreate="1"
    >
        <field name="name">Tier Validation Accepted Notification</field>
        <field name="res_model">crm.team</field>
        <field name="default" eval="True" />
        <field name="internal">True</field>
        <field
            name="parent_id"
            ref="sale_tier_validation.sale_order_tier_validation_accepted"
        />
        <field name="relation_field">team_id</field>
    </record>
    <record
        id="crm_team_tier_validation_rejected"
        model="mail.message.subtype"
        forcecreate="1"
    >
        <field name="name">Tier Validation Rejected Notification</field>
        <field name="res_model">crm.team</field>
        <field name="default" eval="True" />
        <field
            name="parent_id"
            ref="sale_tier_validation.sale_order_tier_validation_rejected"
        />
        <field name="internal">True</field>
        <field name="relation_field">team_id</field>
    </record>
</odoo>
