[IMP] website_sale: allow drag & drop on extra product media

This makes the media easier to sort than manually manipulating their sequence.

task-2029597

closes odoo/odoo#34440

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Sébastien Theys
2019-06-28 10:27:21 +00:00
parent 7d19744f3e
commit db7ea314ad
+2 -4
View File
@@ -216,13 +216,11 @@
<field name="model">product.image</field>
<field name="arch" type="xml">
<form string="Product Images">
<field name="sequence" invisible="1"/>
<div class="row o_website_sale_image_modal">
<div class="col-md-6 col-xl-5">
<label for="name" string="Image Name"/>
<h2><field name="name" placeholder="Image Name"/></h2>
<!-- Unfortunately for now we can't drag and drop kanban o2m, so we have to let the user input the sequence manually. -->
<label for="sequence" string="Sequence"/><br/>
<field name="sequence"/><br/><br/>
<label for="video_url" string="Video URL"/><br/>
<field name="video_url"/><br/>
</div>
@@ -254,7 +252,7 @@
<field name="id"/>
<field name="name"/>
<field name="image_original"/>
<field name="sequence"/>
<field name="sequence" widget="handle"/>
<templates>
<t t-name="kanban-box">
<div class="card oe_kanban_global_click p-0">