跳至內容
選單
此問題已被標幟
1 回覆
9071 瀏覽次數

I'd like to add a template to show project's description when in project.task kanban view.

I've found that there are templates like KanbanView.buttons, ~.Group, ~.LoadMore.

I guess there should be somewhere to append those templates into kanban view but unfortunately, I cannot find it.

What I did is

my_template.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>

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>

But nothing happened.






頭像
捨棄
最佳答案

it seems like whatever you have wrote outside of template but it should be inside the templates.

for example :

<xpath expr="//template" position="inside">

Hope this will help.

Thanks.


頭像
捨棄
作者

Thanks for the answer. then is there a way to add a template outside of a template?

Kanban it self is single template, now I don't know what you exactly require

作者

I want to put a new template in between header including create button and search and kanban view.

相關帖文 回覆 瀏覽次數 活動
1
5月 18
1165
1
4月 25
1481
2
3月 22
6711
4
10月 21
7072
1
12月 19
8141