diff --git a/product_images.py b/product_images.py index 73ceb2e..587080d 100644 --- a/product_images.py +++ b/product_images.py @@ -2,6 +2,7 @@ class product_image(osv.Model): _name = 'product.image' + _order = 'sequence_edit' _columns = { 'name': fields.char('Name'), @@ -10,6 +11,10 @@ class product_image(osv.Model): 'image': fields.binary('Image'), 'image_small': fields.binary('Small Image'), 'product_tmpl_id': fields.many2one('product.template', 'Product'), + 'sequence_edit': fields.integer(), + } + _defaults { + 'sequence_edit': 10, } product_image() diff --git a/views/product_images.xml b/views/product_images.xml index 1cae8d0..e46c9c2 100644 --- a/views/product_images.xml +++ b/views/product_images.xml @@ -9,6 +9,7 @@ +