<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2018 Onestein
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="project_task_timeline" model="ir.ui.view">
        <field name="name">project_task_timeline</field>
        <field name="model">project.task</field>
        <field name="inherit_id" ref="project_timeline.project_task_timeline" />
        <field name="arch" type="xml">
            <field name="user_ids" position="after">
                <field name="progress" />
                <field name="remaining_hours" />
            </field>
            <xpath expr="//small[@name='planned_hours']" position="after">
                <div t-attf-class="o_project_timeline_hr_timesheet_progress">
                    <div
                        t-attf-class="{{ record.remaining_hours &lt; 0 ? 'bg-danger ' : 'bg-success '}}"
                        t-attf-style="width: #{record.progress}%"
                    />
                </div>
            </xpath>
        </field>
    </record>
</odoo>
