Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G2P-Profile Image #163

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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
Loading