Odoo Help


<a type="edit"> odoo kanban

Juan Muñiz Sobradelo
on 7/13/16, 3:56 AM 869 views


Im having problems with the kanban view, i want to make it fully clickable like the odoo default ones, this is my code, the closer i got is making image and content clickable but its not quite the same.

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

    <field name="name">articulo.kanban</field>

    <field name="model">articulo</field>

    <field name="type">kanban</field>

    <field name="arch" type="xml">

       <kanban >


                <t t-name="kanban-box">

                     <div class="oe_resource_vignette">

                         <a type="edit"><div class="oe_resource_image">

                                                             <img t-att-src="kanban_image('articulo', 'foto', record.id.value)" class="oe_resource_picture"/>


                                    <div class="oe_resource_details">

                                            <ul class="lista">

                                                   <li><b><field name="codigo"/></b></li>

                                                   <li><b><field name="tipo"/></b></li>









I dont know if what im asking can be done. Thanks in advance.

On 7/13/16, 6:14 AM

This code is helpful for you, right now check it,

<record model="ir.ui.view" id="My_kanban">
        <field name="name">Kanban</field>
        <field name="model">my.module</field>
        <field name="arch" type="xml">
                <field name="name"/>
                <field name="code"/>
                <field name="lst_price"/>
                    <t t-name="kanban-box">
                        <div class="oe_kanban_vignette oe_semantic_html_override">
                            <a type="open"><img t-att-src="kanban_image('my.module', 'image_small', record.id.value)" class="oe_kanban_image"/></a>
                            <div class="oe_kanban_details">
                                    <a type="open">
                                         <t t-if="record.code.raw_value">[<field name="code"/>]</t> <field name="name"/>
                                <div name="tags"/>
                                    <li>Price: <field name="lst_price"></field></li>

Works exactly the same as "edit" just opens in read-only mode.

My real problem is , when i apply the <a type="edit"> or "open"  to  this div

  <div class="oe_resource_vignette"> it stops working, i can click the full kanban but it wont get me to the form view.


Odoo Developer
On 7/13/16, 4:41 AM

Try by replacing  <a type="edit"> by  <a type="open">

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.


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)


Asked: 7/13/16, 3:56 AM
Seen: 869 times
Last updated: 7/13/16, 6:14 AM