<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="action_account_reports_customer_statements" model="ir.actions.server">
        <field name="name">Open Customer Statements</field>
        <field name="group_ids" eval="[Command.link(ref('account.group_account_invoice'))]"/>
        <field name="model_id" ref="model_res_partner"/>
        <field name="binding_model_id" ref="model_res_partner"/>
        <field name="state">code</field>
        <field name="code">
            if records:
                action = records.open_partner_ledger()
        </field>
    </record>
</odoo>
