看板视图标题上的添加按钮

问题描述 投票:-1回答:1

我正在使用Odoo 10,我想在hr.job的看板视图顶部添加一个按钮。我该怎么办?

python-3.x odoo-10
1个回答
0
投票

您可以这样添加按钮

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

 <t t-jquery="button" t-operation="after">

        <t t-if="widget.modelName == 'hr.job'">
             <button
                class="oe_button oe_highlight" 
                type="button">Your Button</button>
        </t>

    </t>

© www.soinside.com 2019 - 2024. All rights reserved.