<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2023 Akretion France (http://www.akretion.com/)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>

<!-- user_id is not displayed by default in project kanban view (it is native in v16) -->
<record id="view_project_kanban" model="ir.ui.view">
    <field name="model">project.project</field>
    <field name="inherit_id" ref="project.view_project_kanban"/>
    <field name="arch" type="xml">
        <field name="name" position="after">
            <field name="user_id"/>
        </field>
        <xpath expr="//div[hasclass('o_project_kanban_boxes')]" position="inside">
            <a t-if="record.user_id.raw_value" class="o_project_kanban_box">
                <field name="user_id" widget="many2one_avatar_user"/>
            </a>
        </xpath>
    </field>
</record>

</odoo>
