From bf050fb4c04302f49181e9ae496aead9403032c5 Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Mon, 30 Sep 2024 20:19:49 +0530 Subject: [PATCH] [MIG][15.0] storage_image_import: Migration to 15.0 --- storage_image_import/__manifest__.py | 2 +- storage_image_import/models/image_relation_abstract.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage_image_import/__manifest__.py b/storage_image_import/__manifest__.py index eb60ee5ea4..ab9ded3c55 100644 --- a/storage_image_import/__manifest__.py +++ b/storage_image_import/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Storage Image Import", "summary": "Add the possibility to import image for csv base on url", - "version": "14.0.1.2.0", + "version": "15.0.1.0.0", "category": "Storage", "website": "https://github.com/OCA/storage", "author": " Akretion, Odoo Community Association (OCA)", diff --git a/storage_image_import/models/image_relation_abstract.py b/storage_image_import/models/image_relation_abstract.py index 08dc93b79b..d985e299cb 100644 --- a/storage_image_import/models/image_relation_abstract.py +++ b/storage_image_import/models/image_relation_abstract.py @@ -33,7 +33,7 @@ def _create_image_from_url(self, url): _logger.error(e) raise ValidationError( _("Fail to import image {} check if the url is valid").format(url) - ) + ) from e def _get_existing_image_from_url(self, url): return self.env["storage.image"].search([("imported_from_url", "=", url)])