I'd like to append a template in between KanbanView.buttons and KanbanView.Group to show description field in "project.project" model when I view "project.task" kanban view.
I guess there should be somewhere to append those templates into kanban view but unfortunately, I cannot find it.
What I did is
I created a custom template layouts.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<templates>
<t t-name="eric-kanban-view">
<div>This is Eric's kanban view</div>
</t>
</templates>
</data>
</openerp>
and I'd like to add the template to "project.view_task_kanban" to locate above kanban view project.xml
<record id="project_task_custom_kanban" model="ir.ui.view">
<field name="inherit_id" ref="project.view_task_kanban"/>
<field name="model">project.task</field>
<field name="arch" type="xml">
<xpath expr="//templates" position="before">
<t t-call="eric-kanban-view"/>
</xpath>
</field>
</record>
openerp.py
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name' : 'project_customized',
'version' : '1.1',
'author' : "Eric Lee",
'description': 'eric\'s Project customized module',
'installable' : True,
'data' : [
'project.xml',
],
'depends' : [
'project',
],
'qweb': [
'static/src/xml/layouts.xml',
'static/src/xml/project.xml',
],
}
But nothing happened.