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
    • 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
      • Calendar
        • View Calendar Event Calendar Timeline
      • Hr Holidays Calendar
        • Hr Leave Report Calendar Timeline
    • 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

Ir Ui View

Calendar

View Calendar Event Calendar Timeline

ID: mint_system.ir_ui_view.calendar.view_calendar_event_calendar_timeline

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="ir_ui_view.calendar.view_calendar_event_calendar_timeline" model="ir.ui.view">
        <field name="name">calendar.event.calendar.timeline</field>
        <field name="model">calendar.event</field>
        <field name="type">timeline</field>
        <field name="arch" type="xml">
            <timeline date_start="start" date_stop="stop" default_group_by="partner_id" event_open_popup="true"/>
        </field>
    </record>
</odoo>

Source: snippets/ir_ui_view.calendar.view_calendar_event_calendar_timeline.xml

Hr Holidays Calendar

Hr Leave Report Calendar Timeline

ID: mint_system.ir_ui_view.hr_holidays_calendar.hr_leave_report_calendar_timeline

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="ir_ui_view.hr_holidays_calendar.hr_leave_report_calendar_timeline" model="ir.ui.view">
        <field name="name">hr.leave.report.calendar.timeline</field>
        <field name="model">hr.leave.report.calendar</field>
        <field name="type">timeline</field>
        <field name="arch" type="xml">
            <timeline date_start="start_datetime" date_stop="stop_datetime" default_group_by="employee_id" event_open_popup="true">
                <field name="employee_id"/>
                <field name="holiday_status_id"/>
                <templates>
                    <t t-name="timeline-item">
                        <t t-if="record.holiday_status_id == '1,Ferien'">
                            <div class="o_leave_timeline_item" style="background-color: #f9ec6d;">
                                <span name="employee_id">
                                    <t t-esc="record.display_name"/>
                                </span>
                            </div>
                        </t>
                        <t t-elif="record.holiday_status_id == '2,Krankheit'">
                            <div class="o_leave_timeline_item" style="background-color: #ff9ad7;">
                                <span name="employee_id">
                                    <t t-esc="record.display_name"/>
                                </span>
                            </div>
                        </t>
                        <t t-else="">
                            <div class="o_leave_timeline_item">
                                <span name="employee_id">
                                    <t t-esc="record.display_name"/>
                                </span>
                            </div>
                        </t>
                    </t>
                </templates>
            </timeline>
        </field>
    </record>
</odoo>

Source: snippets/ir_ui_view.hr_holidays_calendar.hr_leave_report_calendar_timeline.xml

Edit this page
Last Updated:
Contributors: Kurt Gisler
Prev
Ir Model
Next
L10n Ch