diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-08-01 11:20:33 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-08-02 16:47:58 +0000 |
| commit | 58a2ffa26f1a3b0f9630ce16d11b758d18e20a21 (patch) | |
| tree | e737f6abdd166c7da94827de9d968ad2d7478dde /addons/lunch/models | |
| parent | 8206b5b4cc92b6befd98ebec7f7ef8af588a9b68 (diff) | |
[IMP] *: rename image fields
image_original => image_1920 (now resized to 1920)
image_big => image_1024
image_large => image_256
image_medium => image_128
image_small => image_64
image replaced by image_1920 (when writing) or by image_1024 (when displaying
what was previously the big size)
+ add new intermediate format:
image_512
PR: #34925
Diffstat (limited to 'addons/lunch/models')
| -rw-r--r-- | addons/lunch/models/lunch_product.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/lunch/models/lunch_product.py b/addons/lunch/models/lunch_product.py index b46d212adf8..d091b19ea79 100644 --- a/addons/lunch/models/lunch_product.py +++ b/addons/lunch/models/lunch_product.py @@ -101,12 +101,12 @@ class LunchProduct(models.Model): image = fields.Binary( "Image", help="This field holds the image used as image for the product, limited to 1024x1024px.") - image_medium = fields.Binary( + image_128 = fields.Binary( "Medium-sized image", help="Medium-sized image of the product. It is automatically " "resized as a 128x128px image, with aspect ratio preserved, " "only when the image exceeds one of those sizes. Use this field in form views or some kanban views.") - image_small = fields.Binary( + image_64 = fields.Binary( "Small-sized image", help="Small-sized image of the product. It is automatically " "resized as a 64x64px image, with aspect ratio preserved. " |
