[FIX] website_slides: fix slide.slide category creation from kanban view

This commit fixes an issue that raised an error when trying to create a
slide.slide of type "category" on the slide.slide kanban view.

Since it's not possible to disable the "group creation" on the kanban for a
single filter, we disable it globally.

At the same time, we removed the capability to drag and drop slides in that
view.
It was not very useful and could mess up the records by changing the slide type
without changing the associated data (video link, presentation file, ...).

Issue #45452
Task 2201878

closes odoo/odoo#46083

X-original-commit: ae2117886d0a71be37525b63ee8456a11aee213c
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
This commit is contained in:
Aurélien Warnon
2020-02-24 11:51:38 +00:00
parent 7a928bbdfb
commit 30122c8c7b
@@ -155,7 +155,9 @@
<field name="name">slide.slide.view.kanban</field>
<field name="model">slide.slide</field>
<field name="arch" type="xml">
<kanban edit="false" class="o_slide_kanban">
<kanban edit="false" group_create="0"
records_draggable="0"
class="o_slide_kanban">
<field name="id"/>
<field name="channel_id"/>
<field name="slide_type"/>