From 44b64eac732a3638f36686174350f82fcfb3b3c4 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 20 Aug 2025 11:09:21 +0700 Subject: Dragable Image Carousel Product Variant --- indoteknik_custom/models/product_template.py | 1 + indoteknik_custom/views/product_template.xml | 1 + 2 files changed, 2 insertions(+) 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 @@ image.carousel + -- cgit v1.2.3