<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <!-- Queue Job Channel -->
    <record id="invoice_monthly" model="queue.job.channel">
        <field name="name">invoice_monthly</field>
        <field name="parent_id" ref="queue_job.channel_root" />
    </record>

    <!-- Queue Job Function -->
    <record id="job_function_generate_invoices_by_partner" model="queue.job.function">
        <field name="model_id" ref="sale.model_sale_order" />
        <field name="method">_generate_invoices_by_partner</field>
        <field name="channel_id" ref="invoice_monthly" />
    </record>
</odoo>
