This question has been flagged
1 Reply
3691 Views

i see the all post about the kanban view in odoo forum but not a single post for beginner ,in all post the code for the kanban view no one simplified the  code that, which tag is for what so i want to know  and want to understand how to start in kanban view and what i have to do first and how... 

Avatar
Discard
Best Answer

Hello Tushar,

To develop a kanban view in ODOO.

For the kanban view you have to follow below syntax.

<record model="ir.ui.view" id="any_name_kanban_view_id">

    <field name="name">any name of kanban view</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_employee_vignette">

                        <div class="oe_employee_image">

<a type="edit"><img t-att-src="kanban_image('hr.employee', 'photo', record.id.value)" class="oe_employee_picture"/></a>

</div>

                        <div class="oe_employee_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>                                                   

                             </ul>

                        </div>

                    </div>                       

                </t>

            </templates>

        </kanban>

    </field>

</record>

For more information you can refer this link

http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/6714/stock/product_view.xml#L129

Best Thanks,

Ankit H Gandhi.


Avatar
Discard