summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-08-20 04:12:04 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-08-20 04:12:04 +0000
commit5c9a90401081813e7d06ab3dede8fd4ed50f06e1 (patch)
tree0e17e65be5eb5eaa43b38ada9865956d11bbad46
parent1d44c04f3ec25d3adc19eb8e34589c6461ef8a66 (diff)
parent44b64eac732a3638f36686174350f82fcfb3b3c4 (diff)
Merged in dragable_image_carousel (pull request #389)
<hafid> Dragable Image Carousel Product Variant
-rwxr-xr-xindoteknik_custom/models/product_template.py1
-rwxr-xr-xindoteknik_custom/views/product_template.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index f59bea6b..13e99707 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -1365,4 +1365,5 @@ class ImageCarousel(models.Model):
_order = 'product_id, id'
product_id = fields.Many2one('product.template', string='Product', required=True, ondelete='cascade', index=True, copy=False)
+ sequence = fields.Integer("Sequence", default=10)
image = fields.Binary(string='Image')
diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml
index 8f9d1190..177449f4 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -66,6 +66,7 @@
<field name="model">image.carousel</field>
<field name="arch" type="xml">
<tree editable="bottom">
+ <field name="sequence" widget="handle"/>
<field name="image" widget="image" width="80"/>
</tree>
</field>