Add module project_usability

This commit is contained in:
Alexis de Lattre
2023-06-12 12:32:48 +02:00
parent fd31627fa6
commit 209de4f6db
3 changed files with 46 additions and 0 deletions

View File

View File

@@ -0,0 +1,20 @@
# 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).
{
'name': 'Project Usability',
'version': '14.0.1.0.0',
'category': 'Services/Project',
'license': 'AGPL-3',
'summary': 'Usability improvements on project module',
'author': 'Akretion',
'website': 'https://github.com/akretion/odoo-usability',
'depends': [
'project',
],
'data': [
'views/project_project.xml',
],
'installable': True,
}

View File

@@ -0,0 +1,26 @@
<?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 -->
<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>