Odoo Help

0

Does oe_kanban_global_click_edit not work for odoo 10.0?

By
Peter Schwarz
on 11/4/16, 7:23 AM 293 views

I was trying to get directly into the edit mode from the 'project.task'. So my approach was to change the tasks kanban view from:

<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click">

to:

<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click_edit">


What's wrong with it?


Thank you in advance,

Peter


0
Agile
On 2/16/17, 5:51 AM

Its working for me in odoo 10.0.Here is sample code showing how to develop a kanban view in OpenERP. Try like this

<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_kanban_global_click_edit">

                                <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>

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 11/4/16, 7:23 AM
Seen: 293 times
Last updated: 2/16/17, 5:51 AM