text: <?xml version="1.0" encoding="utf-8"?>
  <odoo>
  
      <record id="timesheet_view_search" model="ir.ui.view">
              <field name="name">account.analytic.line.search</field>
              <field name="model">account.analytic.line</field>
              <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_search"/>
              <field name="arch" type="xml">
                  <xpath expr="//filter[@name='month']" position="before">
                      <filter name="billable_time" string="Billed on Timesheets" domain="[('timesheet_invoice_type', '=', 'billable_time')]"/>
                      <filter name="billable_fixed" string="Billed at a Fixed Price" domain="[('timesheet_invoice_type', '=', 'billable_fixed')]"/>
                      <filter name="non_billable" string="Non Billable Tasks" domain="[('timesheet_invoice_type', '=', 'non_billable')]"/>
                      <separator/>
                  </xpath>
              </field>
      </record>
  
      <record id="timesheet_view_pivot_revenue" model="ir.ui.view">
          <field name="name">account.analytic.line.pivot.revenue</field>
          <field name="model">account.analytic.line</field>
          <field name="arch" type="xml">
              <pivot string="Timesheet">
                  <field name="employee_id" type="row"/>
                  <field name="date" interval="month" type="col"/>
                  <field name="unit_amount" type="measure"/>
              </pivot>
          </field>
      </record>
  
      <!--
          Timesheet from Sales Order
      -->
      <record id="timesheet_action_from_sales_order" model="ir.actions.act_window">
          <field name="name">Timesheets</field>
          <field name="res_model">account.analytic.line</field>
          <field name="search_view_id" ref="hr_timesheet.hr_timesheet_line_search"/>
          <field name="domain">[('project_id', '!=', False)]</field>
      </record>
  
      <record id="timesheet_action_from_sales_order_tree" model="ir.actions.act_window.view">
          <field name="sequence" eval="4"/>
          <field name="view_mode">tree</field>
          <field name="view_id" ref="hr_timesheet.timesheet_view_tree_user"/>
          <field name="act_window_id" ref="timesheet_action_from_sales_order"/>
      </record>
  
      <record id="timesheet_action_from_sales_order_form" model="ir.actions.act_window.view">
          <field name="sequence" eval="5"/>
          <field name="view_mode">form</field>
          <field name="view_id" ref="hr_timesheet.timesheet_view_form_user"/>
          <field name="act_window_id" ref="timesheet_action_from_sales_order"/>
      </record>
  
      <!--
          Reporting
      -->
      <record id="timesheet_action_billing_report" model="ir.actions.act_window">
          <field name="name">Timesheets By Billing Rate</field>
          <field name="res_model">account.analytic.line</field>
          <field name="view_mode">pivot,graph</field>
          <field name="domain">[('project_id', '!=', False)]</field>
          <field name="context">{"search_default_week":1}</field>
          <field name="search_view_id" ref="hr_timesheet.hr_timesheet_line_search"/>
      </record>
  
      <record id="timesheet_filter_billing" model="ir.filters">
          <field name="name">Billing Rate</field>
          <field name="model_id">account.analytic.line</field>
          <field name="user_id" eval="False"/>
          <field name="domain">[('project_id', '!=', False)]</field>
          <field name="is_default" eval="True"/>
          <field name="context">{
              'col_group_by': ['date:month', 'timesheet_invoice_type'],
              'group_by': ['project_id', 'employee_id'],
              'measures': ['amount_currency', 'unit_amount', '__count']
          }</field>
          <field name="action_id" ref="timesheet_action_billing_report"/>
      </record>
  
      <menuitem id="menu_timesheet_billing_analysis"
              parent="hr_timesheet.menu_timesheets_reports_timesheet"
              action="timesheet_action_billing_report"
              name="By Billing Rate"
              sequence="40"/>
  
      <!--
          Plan
      -->
      <record id="timesheet_action_plan_pivot" model="ir.actions.act_window">
          <field name="name">Timesheet</field>
          <field name="res_model">account.analytic.line</field>
          <field name="view_mode">pivot,tree,form</field>
          <field name="domain">[('project_id', '!=', False)]</field>
          <field name="search_view_id" ref="hr_timesheet.hr_timesheet_line_search"/>
      </record>
  
      <record id="timesheet_action_from_plan" model="ir.actions.act_window">
          <field name="name">Timesheet</field>
          <field name="res_model">account.analytic.line</field>
          <field name="view_mode">tree,form</field>
          <field name="domain">[('project_id', '!=', False)]</field>
          <field name="search_view_id" ref="hr_timesheet.hr_timesheet_line_search"/>
      </record>
  
  </odoo>
  