From 74a30f71c3fab91d2fcbefd07a20a30d7e21adde Mon Sep 17 00:00:00 2001 From: DagmawitGT Date: Wed, 21 Aug 2024 12:04:50 +0300 Subject: [PATCH 1/2] pre-commit made --- README.md | 4 ++-- g2p_profile_image/__manifest__.py | 3 --- g2p_profile_image/models/document_file.py | 2 -- requirements.txt | 1 - 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c19756d4..4ea07d6a 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ Available addons addon | version | maintainers | summary --- | --- | --- | --- [g2p_bank](g2p_bank/) | 17.0.1.0.0 | | G2P Registry: Bank Details -[g2p_bank_rest_api](g2p_bank_rest_api/) | 17.0.1.0.0 | | G2P Registry: Bank Details Rest AP -[g2p_profile_image](g2p_profile_image/) | 17.0.1.0.0 | | OpenG2P Profile Image +[g2p_bank_rest_api](g2p_bank_rest_api/) | 17.0.1.0.0 | | G2P Registry: Bank Details Rest API [g2p_enumerator](g2p_enumerator/) | 17.0.1.0.0 | | G2P Enumerator +[g2p_profile_image](g2p_profile_image/) | 17.0.1.0.0 | | OpenG2P Profile Image [g2p_registry_addl_info](g2p_registry_addl_info/) | 17.0.1.0.0 | | G2P Registry: Additional Info [g2p_registry_base](g2p_registry_base/) | 17.0.1.0.0 | | G2P Registry: Base [g2p_registry_documents](g2p_registry_documents/) | 17.0.1.0.0 | | G2P Registry: Documents diff --git a/g2p_profile_image/__manifest__.py b/g2p_profile_image/__manifest__.py index 80283dd9..0888f2b4 100644 --- a/g2p_profile_image/__manifest__.py +++ b/g2p_profile_image/__manifest__.py @@ -11,9 +11,6 @@ "g2p_registry_base", "g2p_registry_documents", ], - "external_dependencies": { - "python": ["pillow==9.0.1"], - }, "data": [], "assets": {}, "demo": [], diff --git a/g2p_profile_image/models/document_file.py b/g2p_profile_image/models/document_file.py index e76c0710..a5166df0 100644 --- a/g2p_profile_image/models/document_file.py +++ b/g2p_profile_image/models/document_file.py @@ -10,7 +10,6 @@ class G2PDocumentFile(models.Model): _inherit = "storage.file" def create(self, vals): - _logger.info("Creating storage file with values: %s", vals) if isinstance(vals, dict): self._check_profile_tag(vals) elif isinstance(vals, list): @@ -21,7 +20,6 @@ def create(self, vals): return super().create(vals) def _check_profile_tag(self, vals_obj): - _logger.info("Checking profile tag for values: %s", vals_obj) profile_tag = self.env["g2p.document.tag"].get_tag_by_name("Profile Image") profile_tag_id = profile_tag.id tags_ids = vals_obj.get("tags_ids", []) diff --git a/requirements.txt b/requirements.txt index 3d3becb2..493cd5d6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ # generated from manifests external_dependencies extendable-pydantic -pillow==9.0.1 pydantic schwifty From f85ba3196dc407e1536319d6e610498a0f1d995a Mon Sep 17 00:00:00 2001 From: DagmawitGT Date: Wed, 21 Aug 2024 12:06:54 +0300 Subject: [PATCH 2/2] pillow dependency removed --- g2p_profile_image/models/document_file.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/g2p_profile_image/models/document_file.py b/g2p_profile_image/models/document_file.py index a5166df0..92520220 100644 --- a/g2p_profile_image/models/document_file.py +++ b/g2p_profile_image/models/document_file.py @@ -1,10 +1,6 @@ -import logging - from odoo import _, models from odoo.exceptions import UserError -_logger = logging.getLogger(__name__) - class G2PDocumentFile(models.Model): _inherit = "storage.file"