Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to get kanban view?

By
supreeth
on 12/10/14, 6:55 AM 978 views

This is my code 

<record id="class_dashboard" model="ir.ui.view">
        <field name="name">class.kanban</field>
        <field name="model">class.dash</field>
        <field name="priority">10</field>
        <field name="arch" type="xml">
            <kanban>
                <field name = "name"/>
            <templates>
                <t t-name="kanban-box">
                    <div>
                        <ul>
                            <li t-if="record.name.raw_value">Class Name: <field name="name"/></li>
                        </ul>
                    </div>
                </t>
            </templates>
            </kanban>
        </field>
    </record>

1
Michael Pol
On 12/10/14, 7:19 AM

Your architecture for Kanban looks proper. Try by putting more fields in your kanban view. For more detail you can refer kanaban view of Project module.

If you are not getting option of kanban view, might be you forgot to put view mode in action.

E.g. 

<field name="view_type">form</field>

<field name="view_mode">kanban,tree,form,calendar</field>

 

 

in view_mode i have already added kanban. the code is running and am getting an error like "Invalid Architecture! There is no view of type 'kanban' defined for the structure!"

supreeth
on 12/10/14, 7:24 AM

Have you put kanban ? view type should be form. form. Please check it.

Michael Pol
on 12/10/14, 7:41 AM

Modified my answer. Please check view type. I can't put xml code in comment. It doesn't display xml code in comment. You can delete my previous comment if you have access.

Michael Pol
on 12/10/14, 7:47 AM
0
supreeth
On 12/10/14, 7:56 AM

Thanks michael, i had not given . <field name="view_id" ref="class_dashboard"/> Now i am getting the view

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/10/14, 6:55 AM
Seen: 978 times
Last updated: 3/16/15, 8:10 AM