<odoo>
    <data noupdate="1">
        <!-- Rule for notifying responsible of event registration -->
        <record id="partner_notify_criminal_record_expiration" model="base.automation">
            <field name="name">Partner: Notify criminal record expiration</field>
            <field name="model_id" ref="model_res_partner"/>
            <field name="trigger">on_time</field>
            <field name="trg_date_id" ref="field_res_partner__criminal_record_write_date"/>
            <field name="filter_domain">[('criminal_record_date', '!=', False)]</field>
            <field name="trg_date_range">36</field>
            <field name="trg_date_range_type">month</field>
            <field name="state">next_activity</field>
            <field name="activity_type_id" ref="mail.mail_activity_data_warning"/>
            <field name="activity_summary">A criminal record is expiring today</field>
            <field name="activity_note">The criminal record of the partner is expiring today</field>
            <field name="activity_user_type">specific</field>
            <field name="activity_user_id" search="[('groups_id', '=', ref('partner_compassion.group_criminal_record'))]"/>
        </record>
    </data>
</odoo>

<odoo>
    <data noupdate="1">
        <!-- Rule for notifying responsible of event registration -->
        <record id="partner_notify_criminal_record_expiration" model="base.automation">
            <field name="name">Partner: Notify criminal record expiration</field>
            <field name="model_id" ref="model_res_partner"/>
            <field name="trigger">on_time</field>
            <field name="trg_date_id" ref="field_res_partner__criminal_record_date"/>
            <field name="filter_domain">[('criminal_record_date', '!=', False)]</field>
            <field name="trg_date_range">36</field>
            <field name="trg_date_range_type">month</field>
            <field name="state">next_activity</field>
            <field name="activity_type_id" ref="mail.mail_activity_data_warning"/>
            <field name="activity_summary">A criminal record is expiring today</field>
            <field name="activity_note">The criminal record of the partner is expiring today</field>
            <field name="activity_user_type">specific</field>
            <field name="activity_user_id" search="[('groups_id', '=', ref('partner_compassion.group_criminal_record'))]"/>
        </record>
    </data>
</odoo>

FIX migration of criminal records
FIX migration of criminal records
