Skip to content

Commit

Permalink
[IMP] payment_redsys: remove website_sale dependency, and fix url gen…
Browse files Browse the repository at this point in the history
…eration to make web.base.url the default if website is not installed
  • Loading branch information
IJOL authored and Tisho99 committed Nov 12, 2024
1 parent d600a96 commit 90a3fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion payment_redsys/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"version": "17.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"depends": ["payment", "website_sale"],
"depends": ["payment"],
"external_dependencies": {"python": ["pycryptodome"]},
"data": [
"views/payment_provider.xml",
Expand Down
2 changes: 1 addition & 1 deletion payment_redsys/models/payment_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _get_website_url(self):
or self.env.context.get("website_id")
and self.env["website"].browse(self.env.context["website_id"])
)
domain = website and website.domain or ""
domain = website and website.domain
if domain and domain != "localhost":
# Check domain scheme as Odoo does in `website._get_http_domain()`
parsed_url = urls.url_parse(domain)
Expand Down

0 comments on commit 90a3fe7

Please sign in to comment.