Skip to content

Commit

Permalink
Merge pull request #163 from DagmawitGT/17.0-develop
Browse files Browse the repository at this point in the history
G2P-Profile Image
  • Loading branch information
shibu-narayanan authored Aug 21, 2024
2 parents 6822066 + f85ba31 commit 282178e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions g2p_profile_image/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"g2p_registry_base",
"g2p_registry_documents",
],
"external_dependencies": {
"python": ["pillow==9.0.1"],
},
"data": [],
"assets": {},
"demo": [],
Expand Down
6 changes: 0 additions & 6 deletions g2p_profile_image/models/document_file.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import logging

from odoo import _, models
from odoo.exceptions import UserError

_logger = logging.getLogger(__name__)


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):
Expand All @@ -21,7 +16,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", [])
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# generated from manifests external_dependencies
extendable-pydantic
pillow==9.0.1
pydantic
schwifty

0 comments on commit 282178e

Please sign in to comment.