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

[v9] Block drag and drop on kanban view

By
Yassine TEIMI
on 7/27/16, 3:53 AM 232 views

In v7, I used to do : <kanban edit='false'> did anything changed to do so in v9 ?

Thanks.

you remove the GROUP BY in the action.

shameem@axon
on 7/27/16, 3:58 AM

Here is my action :

<record id="menu_pa_second_child_action" model="ir.actions.act_window">

<field name="name">Private accompanied persons</field>

<field name="type">ir.actions.act_window</field>

<field name="res_model">kiosque.accompaniment</field>

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

<field name="context">{'search_default_in_progress': 1}</field>

</record>

There is no group by, I can't see what are you talking about ?

Yassine TEIMI
on 7/27/16, 4:01 AM

I want to still group my record on kanban view, at the same time deactivate drag and drop.

Yassine TEIMI
on 7/27/16, 4:06 AM
0
Kera Sakti
On 7/27/16, 5:23 AM

I had same problem like yours and I solved by inheriting javascript. In my case I only block drag and drop on model "crm.lead" so I put my code like this:


var KanbanColumn = require('web_kanban.Column');
KanbanColumn.include({
start: function() {
if (this.record_options.model === "crm.lead"){
this.draggable = false; // In this case I block draggable if the model is crm.lead
}
this._super.apply(this, arguments);
},
});

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: 7/27/16, 3:53 AM
Seen: 232 times
Last updated: 7/27/16, 5:23 AM