<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2021 - TODAY, Marcel Savegnago - Escodoo
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>

    <record id="view_repair_order_timeline" model="ir.ui.view">
        <field name="name">Repair Orders Timeline</field>
        <field name="model">repair.order</field>
        <field name="type">timeline</field>
        <field name="arch" type="xml">
            <timeline date_start="date_repair"
                      default_group_by="user_id"
                      event_open_popup="true"
                      zoomKey="ctrlKey"
                      mode="week"
                      colors="#ec7063:user_id == false;#2ecb71:state=='done';">
                <field name="partner_id"/>
                <templates>
                    <div t-name="timeline-item">
                        <div t-esc="record.display_name"/>
                        Customer:
                        <span t-esc="record.partner_id[1]"/>
                    </div>
                </templates>
            </timeline>
        </field>
    </record>

    <record id="repair.action_repair_order_tree" model="ir.actions.act_window">
        <field name="view_mode">tree,kanban,pivot,calendar,timeline,form</field>
    </record>


</odoo>
