Odoo BuildOdoo Build
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
  • Snippets

    • Account
    • Account Accountant
    • Account Asset
    • Account Batch Payment
    • Account Budget
    • Account Financial Report
    • Account Followup
    • Account Journal Items Report
    • Account Sale Timesheet Report
      • Report Invoice Document
        • Add Linebreak
        • Add Pagebreak
      • Report Invoice With Timesheets
        • Print With Payments
      • Report Sale
        • Set Page Font Size
        • Set Title Font Size
      • Timesheet Report
        • Add Title Space
        • Set Page Font Size
        • Set Title Font Size
      • Timesheet Table
        • Add Start And End Hour
        • Format Table Border
        • Set Table Font Size
        • Show From Until Times
      • Timesheet Table Lines
        • Show From Until Times
        • Sort Lines By Time
    • Agreement
    • Agreement Legal
    • Auth Api Key
    • Base
    • Base Install Request
    • Base Location
    • Business Requirement
    • Calendar
    • Certificate Planer
    • Contract
    • Crm
    • Crm Iap Lead Enrich
    • Delivery
    • Digest
    • Fleet
    • Forestry Timesheet
    • Gio Payroll Custom
    • Helpdesk
    • Hr
    • Hr Attendance
    • Hr Attendance Kanban
    • Hr Contract
    • Hr Expense
    • Hr Holidays
    • Hr Holidays Delegations
    • Hr Payroll
    • Hr Recruitment
    • Hr Timesheet
    • Industry Fsm
    • Industry Fsm Sale
    • Ir Model
    • Ir Ui View
    • L10n Ch
    • L10n Ch Qr Isr Invoice Import
    • L10n Din5008
    • Mail
    • Mail Activity Board
    • Maintenance
    • Maintenance Plan
    • Mrp
    • Mrp Account
    • Mrp Workorder
    • Payment
    • Portal
    • Printnode Base
    • Product
    • Project
    • Project Enterprise
    • Purchase
    • Purchase Requisition
    • Purchase Requisition Send
    • Res Groups
    • Sale
    • Sale Blanket Order
    • Sale Management
    • Sale Margin
    • Sale Order Contact Person
    • Sale Order Line Date
    • Sale Order Picking Note
    • Sale Partner Incoterm
    • Sale Product Set
    • Sale Subscription
    • Stock
    • Stock Account
    • Stock Delivery Note
    • Survey
    • Timesheet Grid
    • Web
    • Website
    • Website Discount Voucher
    • Website Sale

Account Sale Timesheet Report

Report Invoice Document

Add Linebreak

ID: mint_system.account_sale_timesheet_report.report_invoice_document.add_linebreak

<data inherit_id="account_sale_timesheet_report.report_invoice_document" priority="50">
    <xpath expr="//h3[1]" position="before">
        <p style="page-break-before:always;">&#xA0;</p>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.report_invoice_document.add_linebreak.xml

Add Pagebreak

ID: mint_system.account_sale_timesheet_report.report_invoice_document.add_pagebreak

<data inherit_id="account_sale_timesheet_report.report_invoice_document" priority="50">
    <xpath expr="//div[@id='qrcode']" position="after">
        <t t-if="print_with_timesheets">
            <p style="page-break-before:always;"/>
        </t>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.report_invoice_document.add_pagebreak.xml

Report Invoice With Timesheets

Print With Payments

ID: mint_system.account_sale_timesheet_report.report_invoice_with_timesheets.print_with_payments

<data inherit_id="account_sale_timesheet_report.report_invoice_with_timesheets" priority="50">
    <xpath expr="/t[1]/t[1]/t[1]/t[1]" position="after">
        <t t-set="print_with_payments" t-value="True"/>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.report_invoice_with_timesheets.print_with_payments.xml

Report Sale

Set Page Font Size

ID: mint_system.account_sale_timesheet_report.report_sale.set_page_font_size

<data inherit_id="account_sale_timesheet_report.report_sale" priority="50">
    <xpath expr="//div[hasclass('page')]" position="inside">
        <style>
            body {
                font-size: 0.9rem;
            }
        </style>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.report_sale.set_page_font_size.xml

Set Title Font Size

ID: mint_system.account_sale_timesheet_report.report_sale.set_title_font_size

<data inherit_id="account_sale_timesheet_report.report_sale" priority="50">
    <xpath expr="//div[hasclass('page')]" position="inside">
        <style>
            h2 {
                font-size: 1.5rem;
            }
        </style>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.report_sale.set_title_font_size.xml

Timesheet Report

Add Title Space

ID: mint_system.account_sale_timesheet_report.timesheet_report.add_title_space

<data inherit_id="account_sale_timesheet_report.timesheet_report" priority="50">
    <h2 position="attributes">
        <attribute name="style">padding-bottom: 25px</attribute>
    </h2>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_report.add_title_space.xml

Set Page Font Size

ID: mint_system.account_sale_timesheet_report.timesheet_report.set_page_font_size

<data inherit_id="account_sale_timesheet_report.timesheet_report" priority="50">
    <xpath expr="//div[hasclass('page')]" position="inside">
        <style>
            body {
                font-size: 0.9rem;
            }
        </style>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_report.set_page_font_size.xml

Set Title Font Size

ID: mint_system.account_sale_timesheet_report.timesheet_report.set_title_font_size

<data inherit_id="account_sale_timesheet_report.timesheet_report" priority="50">
    <xpath expr="//div[hasclass('page')]" position="inside">
        <style>
            h2 {
                font-size: 1.5rem;
            }
        </style>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_report.set_title_font_size.xml

Timesheet Table

Add Start And End Hour

ID: mint_system.account_sale_timesheet_report.timesheet_table.add_start_and_end_hour

<data inherit_id="account_sale_timesheet_report.timesheet_table" priority="50">
    <xpath expr="//th[@id='date']" position="replace">
        <th id="date" class="align-middle">
            <span>Datum und Uhrzeit</span>
        </th>
    </xpath>
    <xpath expr="//td[@id='line_date']" position="replace">
        <td id="line_date">
            <span t-field="line.date"/>
            <br/>
            <span t-field="line.from_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/>
            <span> - </span>
            <span t-field="line.until_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/>
        </td>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_table.add_start_and_end_hour.xml

Format Table Border

ID: mint_system.account_sale_timesheet_report.timesheet_table.format_table_border

<data inherit_id="account_sale_timesheet_report.timesheet_table" priority="50">
    <xpath expr="//table[hasclass('table-timesheet-entries')]" position="before">
        <style>
      .border-solid-black td {
      border-top: 1px solid black !important;
      border-bottom: 1px solid black !important;
      }
      thead th {
      color: #5c516e;
      }
    </style>
    </xpath>
    <xpath expr="//thead[1]/tr[1]" position="attributes">
        <attribute name="class" separator=" " add="border-black"/>
    </xpath>
    <xpath expr="//td[@id='line_sum_amount']/.." position="attributes">
        <attribute name="class" separator=" " add="border-solid-black"/>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_table.format_table_border.xml

Set Table Font Size

ID: mint_system.account_sale_timesheet_report.timesheet_table.set_table_font_size

<data inherit_id="account_sale_timesheet_report.timesheet_table" priority="50">
    <xpath expr="//table[hasclass('table-timesheet-entries')]" position="before">
        <style>
            table.table-timesheet-entries {
                font-size: 0.8rem;
            }
        </style>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_table.set_table_font_size.xml

Show From Until Times

ID: mint_system.account_sale_timesheet_report.timesheet_table.show_from_until_times

<data inherit_id="account_sale_timesheet_report.timesheet_table" priority="50">
    <xpath expr="//th[@id='date']" position="after">
        <th id="from_until" style="white-space: nowrap;">Zeit</th>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_table.show_from_until_times.xml

Timesheet Table Lines

Show From Until Times

ID: mint_system.account_sale_timesheet_report.timesheet_table_lines.show_from_until_times

<data inherit_id="account_sale_timesheet_report.timesheet_table_lines" priority="50">
    <xpath expr="//td[@id='line_date']" position="after">
        <td id="line_from_until" style="white-space: nowrap;"><span t-field="line.from_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/> - <span t-field="line.until_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/>
    </td>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_table_lines.show_from_until_times.xml

Sort Lines By Time

ID: mint_system.account_sale_timesheet_report.timesheet_table_lines.sort_lines_by_time

<data inherit_id="account_sale_timesheet_report.timesheet_table_lines" priority="50">
    <xpath expr="//tr[1]" position="before">
        <t t-set="lines" t-value="lines.sorted(lambda l: l.from_time)"/>
        <t t-set="lines" t-value="lines.sorted(lambda l: l.date)"/>
    </xpath>
</data>

Source: snippets/account_sale_timesheet_report.timesheet_table_lines.sort_lines_by_time.xml

Edit this page
Last Updated:
Contributors: Janik von Rotz
Prev
Account Journal Items Report
Next
Agreement