Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d618122
ODOO-159: Refactor module structure by splitting core and enhanced fe…
zulquer Nov 21, 2025
14f358e
Merge branch '19.0' into ODOO-159
danielcivit Nov 25, 2025
4155ea5
ODOO-159: Apply OCA formatting
zulquer Nov 26, 2025
5545891
ODOO-159: Exclude ruff rules C901, B904
zulquer Nov 26, 2025
9792c1a
ODOO-159: Remove price_list_id from the core module
zulquer Nov 26, 2025
f68c840
Merge branch 19.0 into ODOO-159
zulquer Dec 2, 2025
f6ed5e0
Update payment_multisafepay/models/__init__.py
zulquer Dec 17, 2025
7ece45f
Update payment_multisafepay/__manifest__.py
zulquer Dec 17, 2025
5ce27fe
Update payment_multisafepay/models/__init__.py
zulquer Dec 17, 2025
4bc8807
Update payment_multisafepay/models/payment_method.py
zulquer Dec 17, 2025
f28de92
Update payment_multisafepay/models/payment_method.py
zulquer Dec 17, 2025
8b7da43
Update payment_multisafepay/models/payment_method.py
zulquer Dec 17, 2025
b7c2ab5
Update payment_multisafepay/models/payment_method.py
zulquer Dec 17, 2025
36263b4
Update payment_multisafepay/tests/test_payment_transaction.py
zulquer Dec 17, 2025
1027e1b
Update payment_multisafepay/views/payment_templates.xml
zulquer Dec 17, 2025
c1aac0a
Update payment_multisafepay/views/payment_templates.xml
zulquer Dec 17, 2025
dcbb599
Update payment_multisafepay_enhaced/__manifest__.py
zulquer Dec 17, 2025
3e63272
Update payment_multisafepay/controllers/main.py
zulquer Dec 17, 2025
f8702b3
Update payment_multisafepay/views/payment_templates.xml
zulquer Dec 17, 2025
1294b0e
Update payment_multisafepay/views/payment_templates.xml
zulquer Dec 17, 2025
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 .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v2

- name: Build project
run: ./bin/release.sh ${{ env.VERSION }}
run: ./release.sh ${{ env.VERSION }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • What's the purpose to move this file to the root directory?
  • All our projects has a bin/ directory
  • Why expose that script to the first line of the project?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because, in this context, a folder at that level is considered an Odoo module, and 'bin' is not an Odoo module


- name: Create Release
id: create_release
Expand Down
6 changes: 5 additions & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ fix = true
extend-select = [
"B",
"C90",
"E501", # line too long (default 88)
# "E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
]
ignore = [
"C901", # Function is too complex
"B904", # Use `raise ... from err` within except clause
]
extend-safe-fixes = ["UP008"]
exclude = ["setup/*"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

from . import models
from . import controllers
from . import wizard
from . import utils

import odoo.addons.payment as payment


def post_init_hook(env):
payment.setup_provider(env, 'multisafepay')
payment.setup_provider(env, "multisafepay")


def uninstall_hook(env):
payment.reset_payment_provider(env, 'multisafepay')
payment.reset_payment_provider(env, "multisafepay")
27 changes: 27 additions & 0 deletions payment_multisafepay/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "MultiSafepay",
"description": """
Accept, manage and stimulate online sales with MultiSafepay.
Increase conversion rates with MultiSafepay unique solutions,
create the perfect checkout experience and the best payment method mix.
""",
"summary": """E-commerce is part of our DNA""",
"author": "MultiSafepay",
"website": "https://github.com//multisafepay",
"license": "AGPL-3",
"category": "eCommerce",
"version": "19.0.2.0.0",
"application": True,
"post_init_hook": "post_init_hook",
"uninstall_hook": "uninstall_hook",
"depends": [
"payment",
],
"external_dependencies": {"python": ["multisafepay"]},
"data": [
"views/payment_templates.xml",
"views/payment_provider_views.xml",
"views/payment_method_views.xml",
"data/payment_provider_data.xml",
],
}
79 changes: 79 additions & 0 deletions payment_multisafepay/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Copyright (c) MultiSafepay, Inc. All rights reserved.
# This file is licensed under the GNU Affero General Public License (AGPL) version 3.0.
# See the LICENSE.md file for more information.
# See the DISCLAIMER.md file for disclaimer details

# Payment method code prefix
PAYMENT_METHOD_PREFIX = "multisafepay_"

SUPPORTED_CURRENCIES = [
"AED",
"AUD",
"BGN",
"BRL",
"CAD",
"CHF",
"CLP",
"CNY",
"COP",
"CZK",
"DKK",
"EUR",
"GBP",
"HKD",
"HRK",
"HUF",
"ILS",
"INR",
"ISK",
"JPY",
"KRW",
"MXN",
"MYR",
"NOK",
"NZD",
"PEN",
"PHP",
"PLN",
"RON",
"RUB",
"SEK",
"SGD",
"THB",
"TRY",
"TWD",
"USD",
"VEF",
"ZAR",
]

STATUS_MAPPING = {
"draft": ("initialized",),
"pending": (),
"authorized": ("reserved",),
"done": ("completed", "partial_refunded", "refunded", "uncleared"),
"cancel": ("canceled", "cancelled", "void", "expired"),
"error": ("declined", "chargedback", "charged_back"),
}

PAYMENT_METHOD_PENDING = [
"banktrans",
"multibanco",
]

BNPL_METHODS = [
"afterpay",
"einvoice",
"in3",
"klarna",
"payafter",
"bnpl_instm",
"bnpl_inst",
"in3b2b",
"santander",
"zinia",
"zinia_in3",
"bnpl_ob",
"bnpl_mf",
"billink",
]
Loading
Loading