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

[16.0][IMP] payment_redsys: remove website_sale dependency #3777

Merged
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
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": "16.0.1.0.1",
"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 @@
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

Check warning on line 108 in payment_redsys/models/payment_provider.py

View check run for this annotation

Codecov / codecov/patch

payment_redsys/models/payment_provider.py#L108

Added line #L108 was not covered by tests
if domain and domain != "localhost":
# Check domain scheme as Odoo does in `website._get_http_domain()`
parsed_url = urls.url_parse(domain)
Expand Down
Loading