diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-08-20 11:09:21 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-08-20 11:09:21 +0700 |
| commit | 44b64eac732a3638f36686174350f82fcfb3b3c4 (patch) | |
| tree | e2a9f2c72662105407e2c0e178c850e20381d019 | |
| parent | c225119cb9bdcee03ca9706ec58dfceb717b5027 (diff) | |
<hafid> Dragable Image Carousel Product Variant
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/product_template.xml | 1 |
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> |
