<?xml version="1.0" encoding="UTF-8"?>
<odoo>

    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.sale.timesheet</field>
        <field name="model">res.config.settings</field>
        <field name="priority" eval="1"/>
        <field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form"/>
        <field name="arch" type="xml">
            <xpath expr="//div[@name='section_leaves']" position="before">
                <block title="Billing">
                    <setting string="Time Billing" help="Sell services and invoice time spent" id="time_billing_setting">
                        <button name="%(sale_timesheet.product_template_action_default_services)d" string="Configure your services" type="action" class="btn-link" icon="oi-arrow-right"/>
                    </setting>
                    <setting help="Timesheets taken into account when invoicing your time" name="invoice_policy">
                        <field name="invoice_policy" widget="upgrade_boolean"/>
                    </setting>
                </block>
            </xpath>
        </field>
    </record>

</odoo>
