<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!--
        Copyright 2018-2020 Brainbean Apps (https://brainbeanapps.com)
        License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
    -->

    <record
        id="action_timesheet_report_wizard_from_selection"
        model="ir.actions.server"
    >
        <field name="name">Generate Timesheet Report</field>
        <field name="type">ir.actions.server</field>
        <field name="model_id" ref="analytic.model_account_analytic_line" />
        <field name="binding_model_id" ref="analytic.model_account_analytic_line" />
        <field name="state">code</field>
        <field name="code">
            if records:
                action = records.action_timesheet_report_wizard()
        </field>
    </record>

</odoo>
