gpt4 book ai didi

openerp - OpenERP 中的看板 View

转载 作者:行者123 更新时间:2023-12-04 06:43:57 25 4
gpt4 key购买 nike

如何在 OpenERP 中创建看板 View ?

developer book似乎没有关于新看板 View 的任何信息,而且我在 OpenERP forum 中没有看到任何有用的信息。 .

最佳答案

下面是展示如何在 OpenERP 中开发看板 View 的示例代码。

对于看板 View ,您必须准备 2 个文件:(1)xml 文件和(2)css 文件。 CSS 文件用于形成看板 View 。

<record model="ir.ui.view" id="resource_kanban_view">
<field name="name">any name of ur model</field>
<field name="model">object.name</field>
<field name="type">kanban</field>
<field name="arch" type="xml">
<kanban>
<templates>
<t t-name="kanban-box">
<div class="oe_resource_vignette">
<div class="oe_resource_image">
<a type="edit"><img t-att-src="kanban_image('object.name', 'photo', record.id.value)" class="oe_resource_picture"/></a>
</div>
<div class="oe_resource_details">
<ul>
<!--Here you have to write the object's field name which you want to display in kanban view -->
<li><field name="name"/></li>
<li><field name="author"/></li>
<li><field name="description"/></li>
<li><field name="available_copy"/> </li>
</ul>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>

关于openerp - OpenERP 中的看板 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10005291/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com