<?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">
                <h2>Billing</h2>
                <div name="timesheet_billing" class="row mt16 o_settings_container">
                    <div class="col-12 col-lg-6 o_setting_box" id="time_billing_setting">
                        <div class="o_setting_right_pane">
                            <span class="o_form_label">Time Billing</span>
                            <div class="text-muted">
                                Sell services and invoice time spent
                            </div>
                            <div class="content-group" name="msg_module_sale_timesheet">
                                <div class="mt8">
                                    <div>
                                        <button name="%(sale_timesheet.product_template_action_default_services)d" string="Configure your services" type="action" class="btn-link" icon="fa-arrow-right"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-12 col-lg-6 o_setting_box" name="invoice_policy">
                        <div class="o_setting_left_pane">
                            <field name="invoice_policy" widget="upgrade_boolean"/>
                        </div>
                        <div class="o_setting_right_pane">
                            <label for="invoice_policy"/>
                            <div class="text-muted">
                                Timesheets taken into account when invoicing your time
                            </div>
                        </div>
                    </div>
                </div>
            </xpath>
        </field>
    </record>

</odoo>
