<data priority="50">
    <!-- New title -->
    <xpath expr="/t/t/t/div/div[2]" position="after">
        <t t-set="min_date" t-value="min(docs.mapped('date'))"/>
        <t t-set="max_date" t-value="max(docs.mapped('date'))"/>
        <t t-set="default_project" t-value="docs.filtered(lambda d: d.project_id.partner_id)[:1].project_id"/>
        <h3>Arbeitsrapport f&#xFC;r das Projekt "<t t-esc="default_project.name"/>"</h3>
        <p>Zeitraum: <t t-esc="min_date" t-options="{'widget': 'date'}"/> bis <t t-esc="max_date" t-options="{'widget': 'date'}"/>
    </p>
        <p>Kunde: <t t-esc="default_project.partner_id.name"/><br/> Erstellt von: <span t-field="user.name"/>
    </p>
        <br/>
    </xpath>
    <!-- Remove responsible -->
    <xpath expr="//table[1]/tbody[1]/tr[1]/td[2]" position="replace"/>
    <xpath expr="//table[1]/thead[1]/tr[1]/th[2]" position="replace"/>
    <xpath expr="//table[1]/tbody[1]/tr[2]/td[2]" position="replace"/>
    <xpath expr="/t[1]/t[1]/t[1]/div[1]/div[2]/div[1]" position="replace"/>
    <!--Combine
  Responsible and Date-->
    <xpath expr="//table[1]/thead[1]/tr[1]/th[1]" position="replace">
        <th>
            <span>Datum</span>
            <br/>
            <span>Author</span>
        </th>
    </xpath>
    <xpath expr="//table[1]/tbody[1]/tr[1]/td[1]" position="replace">
        <td>
            <span t-field="l.date"/>
            <br/>
            <span t-field="l.employee_id.name"/>
        </td>
    </xpath>
</data>
