Reputation: 850
I am developing a module and I need to remove the '+' icon into kanban view
I try to set the flags 'create' to false but that also remove the create button
<kanban default_group_by="state_id" create="false">
So, how I can only remove the '+' icon at the top of every column ?
Sorry for my english, I am learning it.
Upvotes: 0
Views: 1918
Reputation: 850
Thank to a co-worker. The solution is to use quick_create attribute
<kanban default_group_by="state_id" quick_create="false">
Upvotes: 1
Reputation: 2594
Edit the template of kanban view like:
<field name= "products" widget="many2many_kanban" nolabel="1">
<kanban>
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_vignette oe_semantic_html_override">
<a type="open"><img t-att-src="kanban_image('product.product', 'image', record.id.value)" class="oe_kanban_image"/></a>
<div class="oe_kanban_details">
<h4> <a type="open"> <field name="name"/> </a>
</h4>
</div>
</div>
</t>
</templates>
</kanban>
</field>
Upvotes: 0