Skip to content

Commit

Permalink
[MIG] base_rest, base_rest_demo: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Oct 30, 2019
1 parent 6a13e0b commit 893fe75
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exclude: "^setup/|/static/lib/|/static/src/lib/|^base_rest"
exclude: "^setup/|/static/lib/|/static/src/lib/"
default_language_version:
python: python3
repos:
Expand Down
6 changes: 3 additions & 3 deletions base_rest/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"summary": """
Develop your own high level REST APIs for Odoo thanks to this addon.
""",
"version": "12.0.2.0.1",
"version": "13.0.2.0.1",
"development_status": "Beta",
"license": "LGPL-3",
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
Expand All @@ -20,7 +20,7 @@
],
"demo": [],
"external_dependencies": {
"python": ["cerberus", "pyquerystring", "accept_language"]
"python": ["cerberus", "pyquerystring", "parse-accept-language"]
},
"installable": False,
"installable": True,
}
3 changes: 1 addition & 2 deletions base_rest/models/rest_service_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""
import odoo
from odoo import api, http, models
from odoo import http, models

from ..core import (
RestServicesRegistry,
Expand All @@ -34,7 +34,6 @@ class RestServiceRegistation(models.AbstractModel):
_name = "rest.service.registration"
_description = "REST Services Registration Model"

@api.model_cr
def _register_hook(self):
# This method is called by Odoo when the registry is built,
# so in case the registry is rebuilt (cache invalidation, ...),
Expand Down
4 changes: 2 additions & 2 deletions base_rest_demo/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Base Rest Demo",
"summary": """
Demo addon for Base REST""",
"version": "12.0.2.0.0",
"version": "13.0.2.0.0",
"development_status": "Beta",
"license": "LGPL-3",
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
Expand All @@ -15,5 +15,5 @@
"data": [],
"demo": [],
"external_dependencies": {"python": ["jsondiff"]},
"installable": False,
"installable": True,
}
2 changes: 1 addition & 1 deletion base_rest_demo/services/partner_image_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get(self, _id, size):
elif size == "medium":
field = "image_medium"
status, headers, content = self.env["ir.http"].binary_content(
model="res.partner", id=_id, field=field, env=self.env
model="res.partner", id=_id, field=field
)
if not content:
raise MissingError(_("No image found for partner %s") % _id)
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
cerberus
pyquerystring
parse-accept-language
jsondiff
graphene
graphql-server-core

0 comments on commit 893fe75

Please sign in to comment.