<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="action_attachments_download" model="ir.actions.server">
        <field name="name">Download</field>
        <field name="model_id" ref="base.model_ir_attachment" />
        <field name="binding_model_id" ref="base.model_ir_attachment" />
        <field name="state">code</field>
        <field name="code">
            if records:
                action = records.action_attachments_download()
        </field>
    </record>
</odoo>
