<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <!-- Used to bring a menu inside action menu  -->
        <record id="server_action_get_card" model="ir.actions.server">
            <field name="name">Print Membership Card</field>
            <field name="model_id" ref="base.model_res_partner"/>
            <field name="binding_model_id" ref="base.model_res_partner"/>
            <field name="state">code</field>
            <field name="code">action = records.server_action_get_card()</field>
        </record>
    </data>
</odoo>