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

feat: enable storage module #473

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ repos:
- id: oca-gen-addon-readme
args:
- --addons-dir=.
- --branch=17.0
- --branch=18.0
- --org-name=camptocamp
- --repo-name=odoo-cloud-platform
- --if-source-changed
Expand Down
4 changes: 2 additions & 2 deletions attachment_azure/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Attachments on Azure storage",
"summary": "Store assets and attachments on a Azure compatible object storage",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp, "
"Open Source Integrators, "
"Serpent Consulting Services, "
Expand All @@ -16,7 +16,7 @@
"python": ["azure-storage-blob", "azure-identity"],
},
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"installable": False,
"installable": True,
"development_status": "Beta",
"maintainers": ["max3903"],
}
24 changes: 0 additions & 24 deletions base_attachment_object_storage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,2 @@
from . import models
from odoo.http import Stream


old_from_attachment = Stream.from_attachment


@classmethod
def from_attachment(cls, attachment):
if attachment.store_fname and attachment._is_file_from_a_store(
attachment.store_fname
):
self = cls(
mimetype=attachment.mimetype,
download_name=attachment.name,
conditional=True,
etag=attachment.checksum,
)
self.type = "data"
self.data = attachment.raw
self.size = len(self.data)
return self
return old_from_attachment(attachment)


Stream.from_attachment = from_attachment
4 changes: 2 additions & 2 deletions base_attachment_object_storage/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
{
"name": "Base Attachment Object Store",
"summary": "Base module for the implementation of external object store.",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Knowledge Management",
"depends": ["base"],
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": ["data/res_config_settings_data.xml"],
"installable": False,
"installable": True,
"auto_install": True,
}
2 changes: 1 addition & 1 deletion base_fileurl_field/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Base FileURL Field",
"summary": "Implementation of FileURL type fields",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Technical Settings",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/camptocamp/odoo-cloud-platform",
Expand Down
4 changes: 2 additions & 2 deletions cloud_platform/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Cloud Platform",
"summary": "Addons required for the Camptocamp Cloud Platform",
"version": "17.0.2.0.0",
"version": "18.0.2.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Extra Tools",
Expand All @@ -17,5 +17,5 @@
],
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"installable": False,
"installable": True,
}
4 changes: 2 additions & 2 deletions cloud_platform_azure/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Cloud Platform Azure",
"summary": "Addons required for the Camptocamp Cloud Platform on Azure",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Extra Tools",
Expand All @@ -20,5 +20,5 @@
],
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"installable": False,
"installable": True,
}
4 changes: 2 additions & 2 deletions logging_json/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "JSON Logging",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Extra Tools",
Expand All @@ -15,5 +15,5 @@
},
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"installable": False,
"installable": True,
}
2 changes: 1 addition & 1 deletion monitoring_log_requests/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Monitoring: Requests Logging",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp,Numigi,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "category",
Expand Down
4 changes: 2 additions & 2 deletions monitoring_prometheus/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Monitoring: Prometheus Metrics",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "category",
Expand All @@ -18,5 +18,5 @@
"external_dependencies": {
"python": ["prometheus_client"],
},
"installable": False,
"installable": True,
}
2 changes: 1 addition & 1 deletion monitoring_statsd/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Monitoring: Statsd Metrics",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "category",
Expand Down
4 changes: 2 additions & 2 deletions monitoring_status/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

{
"name": "Monitoring: Status",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "category",
"depends": ["base", "web"],
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"installable": False,
"installable": True,
}
2 changes: 1 addition & 1 deletion monitoring_status/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from odoo import http

from odoo.addons.web.controllers.main import ensure_db
from odoo.addons.web.controllers.utils import ensure_db


class HealthCheckFilter(logging.Filter):
Expand Down
2 changes: 1 addition & 1 deletion session_redis/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
},
"website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"installable": False,
"installable": True,
}
2 changes: 1 addition & 1 deletion test_base_fileurl_field/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "test base fileurl fields",
"summary": """A module to verify fileurl field.""",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Tests",
"author": "Camptocamp,Odoo Community Association (OCA)",
"website": "https://github.com/camptocamp/odoo-cloud-platform",
Expand Down