跳至内容
菜单
此问题已终结
4342 查看

Hi I now can add a text next to create button in kanban view.

Is there a way to add a field value next to create button?

What I've done so far is 


<?xml version="1.0" encoding="UTF-8"?>

<templates id="template" xml:space="preserve">

    <t t-extend="KanbanView.buttons">

        <t t-jquery="button.o-kanban-button-new" t-operation="after">

            <t t-if="widget.model=='project.task'">

                <t t-set="o" t-value="doc">

                    <span t-field="o.id"/>

                </t>

            </t>

        </t>

    </t>

</templates>


But I have no idea how to get a field in project.project model to add next to create button.

形象
丢弃
相关帖文 回复 查看 活动
0
12月 21
3277
1
12月 23
19195
0
3月 25
813
1
8月 24
1685
1
7月 24
1789