<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record model="ir.ui.view" id="view_task_form2_inherit_form_view">
        <field name="name">project.task.form.view</field>
        <field name="model">project.task</field>
        <field name="inherit_id" ref="project.view_task_form2"/>
        <field name="arch" type="xml">
            <page name="extra_info" position="after">
                <page name="checklist" string="Checklist">
                    <group>
                        <group string="Checklist">
                            <field name="task_checklist" widget="many2many_checkboxes"/>
                        </group>
                        <group string="Completed">
                            <field name="checklist_progress" widget="percentpie"/>
                        </group>
                    </group>
                </page>
            </page>
        </field>
    </record>

    <record model="ir.ui.view" id="view_task_tree2_inherit_tree_view">
        <field name="name">project.task.tree.view</field>
        <field name="model">project.task</field>
        <field name="inherit_id" ref="project.view_task_tree2"/>
        <field name="arch" type="xml">
            <field name="stage_id" position="before">
                <field name="checklist_progress" widget="progressbar"/>
            </field>
        </field>
    </record>

    <record model="ir.ui.view" id="view_task_kanban_inherit">
        <field name="name">project.task</field>
        <field name="model">project.task</field>
        <field name="inherit_id" ref="project.view_task_kanban"/>
        <field name="arch" type="xml">
            <xpath expr="//templates" position="before">
                <field name="checklist_progress"/>
                <field name="max_rate"/>
            </xpath>
            <xpath expr="//field[@name='project_id']" position="after">
                <li>
                    <field name="checklist_progress" widget="gauge"
                           options="{'max_field': 'max_rate',  'style': 'width:160px; height: 120px;'}">
                    </field>
                </li>
            </xpath>
        </field>
    </record>

</odoo>