콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
9082 화면

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
1484
2
3월 22
6712
4
10월 21
7076
1
12월 19
8143