Here is a sample code showing how to develop a kanban representation in OpenERP.
To represent kanban, you need to prepare 2 files: (1) xml file and (2) css file. A CSS file is used to form a kanban representation.
<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> <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>
source share