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

    <!-- ==================== BATCH SERVER ACTIONS FOR RES.PARTNER ==================== -->

    <!-- Mark as Authorizer - Batch Action (Gear Menu) -->
    <record id="action_mark_as_authorizer" model="ir.actions.server">
        <field name="name">Mark as Authorizer</field>
        <field name="model_id" ref="base.model_res_partner"/>
        <field name="binding_model_id" ref="base.model_res_partner"/>
        <field name="binding_view_types">list</field>
        <field name="state">code</field>
        <field name="code">
action = records.action_mark_as_authorizer()
        </field>
    </record>

    <!-- Send Portal Invitation - Batch Action (Gear Menu) -->
    <record id="action_batch_send_invitation" model="ir.actions.server">
        <field name="name">Send Portal Invitation</field>
        <field name="model_id" ref="base.model_res_partner"/>
        <field name="binding_model_id" ref="base.model_res_partner"/>
        <field name="binding_view_types">list</field>
        <field name="state">code</field>
        <field name="code">
action = records.action_batch_send_portal_invitation()
        </field>
    </record>

    <!-- Mark as Authorizer & Send Invitation (Combined) - Batch Action (Gear Menu) -->
    <record id="action_mark_and_invite" model="ir.actions.server">
        <field name="name">Mark as Authorizer &amp; Send Invitation</field>
        <field name="model_id" ref="base.model_res_partner"/>
        <field name="binding_model_id" ref="base.model_res_partner"/>
        <field name="binding_view_types">list</field>
        <field name="state">code</field>
        <field name="code">
action = records.action_mark_and_send_invitation()
        </field>
    </record>

</odoo>
