Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • xcg/odoo-modules/redner
1 result
Show changes
Commits on Source (3)
...@@ -45,3 +45,4 @@ ...@@ -45,3 +45,4 @@
45782562e45bfe61ade010f60024606eb38c93dc 18.0.1.4.0 45782562e45bfe61ade010f60024606eb38c93dc 18.0.1.4.0
623b0936ed97cc991979f8b1f44409fe99ecf128 18.0.1.4.1 623b0936ed97cc991979f8b1f44409fe99ecf128 18.0.1.4.1
92a7706fb60caaa68872787d29b5dd40be75cf72 18.0.1.5.0 92a7706fb60caaa68872787d29b5dd40be75cf72 18.0.1.5.0
4fb82a9fdbd2bb5929359d0ce1d642a4deba03b2 18.0.1.6.0
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
Changelog Changelog
========= =========
18.0.1.6.0
----------
Declare compatibility with changes in converter 18.0.6.0.0.
requests_unixsocket is now an optional dependency, only needed when connecting to redner on a unix socket.
18.0.1.5.0 18.0.1.5.0
---------- ----------
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{ {
"name": "Redner", "name": "Redner",
"license": "AGPL-3", "license": "AGPL-3",
"version": "18.0.1.5.0", "version": "18.0.1.6.0",
"category": "Reporting", "category": "Reporting",
"author": "XCG Consulting", "author": "XCG Consulting",
"website": "https://orbeet.io/", "website": "https://orbeet.io/",
...@@ -44,6 +44,5 @@ ...@@ -44,6 +44,5 @@
], ],
}, },
"installable": True, "installable": True,
"external_dependencies": {"python": ["requests_unixsocket"]},
"images": ["static/description/thumbnail.png"], "images": ["static/description/thumbnail.png"],
} }
...@@ -16,10 +16,6 @@ ...@@ -16,10 +16,6 @@
"Framework :: Odoo :: 18.0", "Framework :: Odoo :: 18.0",
"License :: OSI Approved :: GNU Affero General Public License v3", "License :: OSI Approved :: GNU Affero General Public License v3",
] ]
dependencies = [ dependencies = ["odoo==18.0.*", "odoo-addon-converter >=18.0.4,<18.0.7"]
"odoo==18.0.*",
"odoo-addon-converter >=18.0.4,<18.0.6",
"requests_unixsocket",
]
[project.optional-dependencies] [project.optional-dependencies]
...@@ -24,5 +20,6 @@ ...@@ -24,5 +20,6 @@
[project.optional-dependencies] [project.optional-dependencies]
unixsocket = ["requests_unixsocket"]
doc = ["sphinx"] doc = ["sphinx"]
test = [] test = []
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
from urllib.parse import quote from urllib.parse import quote
import requests import requests
import requests_unixsocket # type: ignore[import-untyped]
from odoo import _ # type: ignore[import-untyped] from odoo import _ # type: ignore[import-untyped]
from odoo.exceptions import ValidationError # type: ignore[import-untyped] from odoo.exceptions import ValidationError # type: ignore[import-untyped]
...@@ -48,6 +47,9 @@ ...@@ -48,6 +47,9 @@
self.timeout = timeout self.timeout = timeout
if server_url.startswith("/"): if server_url.startswith("/"):
# import here as this is an optional requirement
import requests_unixsocket # type: ignore[import-untyped]
self.session = requests_unixsocket.Session() self.session = requests_unixsocket.Session()
self.server_url = "http+unix://{}/".format(quote(server_url, safe="")) self.server_url = "http+unix://{}/".format(quote(server_url, safe=""))
else: else:
......