Commit Graph
1606 Commits
Author SHA1 Message Date
Christihan Laurel [Vauxoo] ce6849548a [FIX] Payment: prevent error in rendering payment icon list with PIL incompatible icon image formats
Replace the use of 't-esc' with 't-field' for the payment icon image in
the icons list template. The latter, for an image field, provides two
options for rendering the payment icon image: use the PIL library to
obtain the image when given the option 'qweb_img_raw_data', or use a
URL. The former only considers the first option, allowing only image
formats compatible with the PIL library.

closes odoo/odoo#159586

X-original-commit: bc76cca37504b40eac73190363c452f89dca65ed
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-03-28 12:19:11 +00:00
Odoo Translation Bot 395140671f [I18N] Update translation terms from Transifex 2024-03-24 00:12:07 +01:00
Odoo Translation Bot c4bc200b47 [I18N] Update translation terms from Transifex 2024-03-17 00:11:43 +01:00
Odoo Translation Bot 1b9fd01d46 [I18N] Update translation terms from Transifex 2024-03-10 00:13:03 +01:00
Lina (liew) 5396941380 [IMP] sale: improve payment form in portal
Improve visual of payment form in customer portal

task-3640114
backport of odoo/odoo#150919

closes odoo/odoo#156079

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-03-04 18:21:38 +00:00
Odoo Translation Bot cb45934163 [I18N] Update translation terms from Transifex 2024-03-03 00:09:56 +01:00
Odoo Translation Bot 4f4ca50e8d [I18N] Update translation terms from Transifex 2024-02-25 00:13:04 +01:00
Antoine Vandevenne (anv) 869aed0064 [FIX] payment: remove support for unsupported payment methods
The following combinations of payment methods and providers are removed:

- Amazon Pay - Adyen: The payment method cannot be activated because it
  requires saving a public key in Odoo, and no field was made available
  for that. Also, a custom configuration is necessary and the public key
  must be generated through a lengthy process that is too cumbersome for
  the added value of the payment method anyway.
- BLIK - Stripe: The payment method is not supported by Stripe when the
  PaymentIntent object is created after collecting the payment details.
  See https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=payment#enable-payment-methods

opw-3736511

closes odoo/odoo#153481

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-02-23 18:10:31 +00:00
Antoine Vandevenne (anv) a32c277fac [FIX] payment: prevent changing the company when transactions exist
opw-3696841

closes odoo/odoo#155113

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-02-23 15:13:54 +00:00
Valeriya(vchu) bc2c4fbb3f [FIX] payment(_demo,_custom): show 'Secured by' element
If payment_custom or payment_demo is installed 'Secured by' element is
overriden and becomes hidden for all payment providers.

We removed xpath as it is more convenient for the users to see which
provider is behind a payment method. After this commit 'Secured by'
element is shown for all providers except for custom.

closes odoo/odoo#155014

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-02-23 13:10:01 +00:00
jobl 954497195d [FIX] payment: stripe provider no longer copies website_id
Description:
In a multi-company environment, `payment.provider` records are specific to each company. After activating Stripe on Company 1,
you can set a Website for the record if you wish. If you wish to activate Stripe for Company 2, Odoo will use `.copy()`
to create a new `payment.provider` record for Company 2. However, this will lead to differing incorrect behavior depending
on the version.

On 16, a new `payment.provider` record will be created, but will be connected to the Website set on Company 1's provider.

On 17, Odoo will throw an error after a `check_company` call reveals that the Website set on the new record is for the
wrong company, preventing the record from being created.

In both cases, the `.copy()` grabs the optional Website set on the existing `payment.provider` record to be used incorrectly
for the new record.

Desired behavior after PR is merged:
The Website relation is always neutralized when Odoo creates a new Stripe `payment.provider` record using the `.copy()` method

opw-3683338

closes odoo/odoo#154521

X-original-commit: 76cf4221b332c924c243e19f911131431c041bc6
Signed-off-by: Joel Bluemel (jobl) <jobl@odoo.com>
2024-02-21 20:23:00 +00:00
Antoine Vandevenne (anv) d9e554bae8 [FIX] payment: archive tokens of payment methods blocking tokenization
When a payment method was updated in a way that prevented creating
tokens with it, that is, by either disabling it, unchecking the
"Tokenization Supported" field, or unlinking it from providers, only the
latter would automatically archive the related tokens after showing a
warning to the user. The two first actions prevented the creation of
future tokens with that payment method, but existing tokens could still
be used.

This commit fixes that behavior by adding the warning and the automatic
archiving of related tokens where they were missing. Preventing further
tokenization with a payment method now consistently blocks payments
through existing tokens, too.

closes odoo/odoo#150120

Related: odoo/enterprise#54700
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
2024-02-20 13:22:08 +00:00
Antoine Vandevenne (anv) e475a38da2 [FIX] payment, sale: forward kwargs to _get_compatible_payment_methods
The keyword arguments of the callees were never forwarded to the
`payment.method::_get_compatible_payment_methods` method, preventing
overriding modules from controlling which payment method should be
available depending on the kwargs.

task-3640488

Part-of: odoo/odoo#150120
2024-02-20 13:22:08 +00:00
Odoo Translation Bot 1cf48deef9 [I18N] Update translation terms from Transifex 2024-02-18 00:12:23 +01:00
Victor Feyens 5bcb3e0cf6 [FIX] payment(_custom): provider uninstall
Since fd2fb212c5, the
sepa provider (enterprise module) behaves as a custom
provider but despite some adaptations, the removal
of providers on module uninstall was not properly
adapted.

The uninstall of the sepa provider failed as its
inline template was not unlinked from the provider
before the template deletion.

This commit makes sure that custom providers are
correctly considered in the uninstall util supposed
to restore a provider to its state before the
installation of its module.

opw-3734697
opw-3721846

closes odoo/odoo#153843

X-original-commit: e70dbbae56472b124a59c38a1fbfeea23c8ec28b
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2024-02-13 17:59:58 +00:00
Odoo Translation Bot dd40867949 [I18N] Update translation terms from Transifex 2024-02-11 00:14:17 +01:00
Tiffany Chang (tic) 94c58407f6 [I18N] *: add in Russian translations
For a first iteration, Russian translations were done using DeepL using
1 large .pot file of all the standard modules to translate (e.g. no
localizations, no test modules, etc). Unfortunately for some reason
doing a msgmerge with the existing ru.po files didn't seem to work, so
old "Translators" metadata at top of files were lost (maybe they will be
re-added during next Transifex sync?)

Part-of: odoo/odoo#152285
2024-02-06 18:49:02 +00:00
Tiffany Chang (tic) c79a32066a [I18N] *: export 17.0 translations
Clean the pot files since last cleaning

Part-of: odoo/odoo#152285
2024-02-06 18:49:02 +00:00
Odoo Translation Bot c95419af44 [I18N] Update translation terms from Transifex 2024-02-04 00:11:05 +01:00
Odoo Translation Bot 625dac5a10 [I18N] Update translation terms from Transifex 2024-01-28 00:16:34 +01:00
Antoine Vandevenne (anv) 5cea9dddcc [IMP] payment: improve test coverage
Some logic of the `payment.provider` and `provider.method` models was
not properly covered by unit tests.

closes odoo/odoo#149833

Related: odoo/enterprise#54930
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-01-23 22:51:51 +00:00
nni-odoo f3d7a97f69 [ADD] payment_xendit: new payment provider for Indonesia and Philippines
See the README.md file for more details.

2946329

closes odoo/odoo#141661

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-01-22 19:00:55 +00:00
Odoo Translation Bot 95a4b6dfdc [I18N] Update translation terms from Transifex 2024-01-21 00:17:03 +01:00
Odoo Translation Bot b81790505b [I18N] Update translation terms from Transifex 2024-01-14 00:16:26 +01:00
Antoine Vandevenne (anv) 2c79995c29 [FIX] payment: allow creating new payment methods from the provider
When browsing a payment provider's payment methods, the "New" button was
disabled because the action did not allow Kanban views.

closes odoo/odoo#148865

Signed-off-by: Valentin Chevalier <vcr@odoo.com>
2024-01-10 21:04:35 +00:00
Antoine Vandevenne (anv) 59520da5ec [FIX] payment: show the payment methods buttons only on active providers
When the payment provider was disabled, the "Enabled Payment Buttons"
was shown, although it was not possible to enable them yet. The button
is now hidden until the provider's state is set to either 'enabled' or
'test'.

Part-of: odoo/odoo#148865
2024-01-10 21:04:35 +00:00
Antoine Vandevenne (anv) 8ddd6f12f2 [FIX] payment: fix date for non-deterministic test
When `test_display_name_for_empty_payment_details` was tested around
midnight, the test would fail because it compares the current date with
the token's create date, which would be the day before.

closes odoo/odoo#148781

X-original-commit: 87f94715a09b7681bcd92d1cba4f84d30918c502
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2024-01-10 18:25:13 +00:00
Odoo Translation Bot 0e23020b84 [I18N] Update translation terms from Transifex 2024-01-07 00:23:19 +01:00
Odoo Translation Bot ad35458e8b [I18N] Update translation terms from Transifex 2023-12-31 00:18:24 +01:00
kcv-odoo 513be97b2f [IMP] payment_razorpay: support tokenization in Razorpay's "Payment" gateway
See README for technical details.

task-3495914

closes odoo/odoo#143525

Related: odoo/documentation#6732
Signed-off-by: Kartik Chavda (kcv) <kcv@odoo.com>
2023-12-24 07:01:14 +00:00
Odoo Translation Bot 50e8e08183 [I18N] Update translation terms from Transifex 2023-12-24 00:18:24 +01:00
Odoo Translation Bot 304a6caa14 [I18N] Update translation terms from Transifex 2023-12-17 00:08:26 +01:00
Odoo Translation Bot 8ab45d4a85 [I18N] Update translation terms from Transifex 2023-12-10 00:12:46 +01:00
Anita (anko) 1d3d587edd [IMP] payment : delete sepa direct debit from mollie
Sepa Direct Debit is deleted from Mollie data as it seems
to not support one time transactions and currently Odoo
doesn't support tokenization in Mollie.

closes odoo/odoo#145166

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-12-06 12:42:24 +00:00
Odoo Translation Bot 2ac98dc2e5 [I18N] Update translation terms from Transifex 2023-12-03 00:18:54 +01:00
Odoo Translation Bot 3ffba892de [I18N] Update translation terms from Transifex 2023-11-26 00:20:02 +01:00
Valeriya(vchu) 671640cf59 [IMP] website_sale, payment: create payment button widget
Before this commit, the payment button was part of the checkout/manage
form widgets, which caused conflicts when other modules needed to
enable/disable the button depending on custom conditions.

After this commit, the payment button logic is extracted in a separate
widget that handles its enabling after checking if all conditions are
satisfied. Other modules can extend the widget and override
`isButtonReady` to add custom logic.

task-3568861

closes odoo/odoo#142265

X-original-commit: 496c22f67b840a72758640576546ba16b177aafc
Related: odoo/enterprise#50783
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-11-24 14:59:41 +00:00
Valentin Chevalier 96439698a9 [FIX] payment_stripe: handle tokenization for Boleto
Before this commit, an internal server error was shown when customers
tried to tokenize Boleto.

opw-3572673

closes odoo/odoo#142514

X-original-commit: fe9f937ce4f9bde327a7ea4f53346e2014908287
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
2023-11-20 03:46:45 +00:00
Odoo Translation Bot f6fe982853 [I18N] Update translation terms from Transifex 2023-11-19 00:28:08 +01:00
Antoine Vandevenne (anv) 7ec8e3454d [FIX] payment: don't suggest archiving acquirers when it's not possible
Payment acquirers don't have an `active` field, which makes users
confused when they try to delete an acquirer, and the error message
suggests archiving it instead.

opw-3579946

closes odoo/odoo#142000

X-original-commit: 69166117073f1bf255b62b81eaa744f81353f6b4
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-11-14 15:16:09 +00:00
Odoo Translation Bot 593ac17031 [I18N] Update translation terms from Transifex 2023-11-09 11:30:34 +01:00
Louis (wil) 68b4dfc2bb [I18N] *: import translations
closes odoo/odoo#141655

Related: odoo/enterprise#50484
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-11-08 20:48:14 +00:00
Antoine Vandevenne (anv) 1fb7571afb [FIX] *: retarget documentation links to 17.0
closes odoo/odoo#141406

Related: odoo/enterprise#50357
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-11-07 23:57:41 +00:00
Anita (anko) f7a4da5602 [CLN] payment: alphabetizing payment methods
All payment methods have been sorted alphabetically.

Part-of: odoo/odoo#140907
2023-11-06 18:11:32 +00:00
Anita (anko) 2425782fc6 [IMP] payment: fine tuning payment methods
Part-of: odoo/odoo#140907
2023-11-06 18:11:32 +00:00
Rémy Voet (ryv) c1e8a32e7d [FIX] core,*: Fix display_name computations for new records.
As of https://github.com/odoo/odoo/pull/114024, `display_name` is
implicit in every form view (see the use of addFieldDependencies in the
Form controller). Therefore, when you create a new record for this
model, it calls the first `onchange`, which will compute display_name
for a new record (id without origin). Some `_compute_display_name` don't
handle new records correctly and raise a traceback. These models are
sometimes directly accessible:

- Accounting > Account Group > New => Traceback
- Contact > Contact Tags > New => Traceback

Other models are inaccessible by default (no view to access or create a
new record), but if someone creates a view for them with studio (or
modifies an existing one to allow creation):

- `crm.iap.lead.role`
- `crm.iap.lead.seniority`
- `chatbot.script.answer`
- `payment.token`

Change the code of `_compute_display_name` on these models to be more
defensive and avoid (potential) tracebacks. Similarly, change the
`convert_to_display_name` of `fields.Datetime` to take into account
`None` value.

closes odoo/odoo#139592

Related: odoo/enterprise#49721
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
2023-11-06 11:16:31 +00:00
Odoo Translation Bot 5d2bc9e9b3 [I18N] Update translation terms from Transifex 2023-11-05 00:21:55 +01:00
Louis (wil) a46c800d53 [I18N] *: export source terms
closes odoo/odoo#140529

Related: odoo/enterprise#49925
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-10-31 15:54:32 +00:00
Brieuc-brd d786992973 [FIX] payment: adapt long payment summary
Prior to this commit, the content of the payment summary did not include
line breaks when the text was too long, creating layout issue.

To fix that, this commit adapts the font size and forces the text to
break.

task-3576830

closes odoo/odoo#140423

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-10-31 10:33:58 +00:00
Antoine Vandevenne (anv) f294bc10f8 [FIX] website_sale: handle missing express checkout providers
The express checkout form template could not be rendered when no payment
provider supporting express checkout was passed.

closes odoo/odoo#140415

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-10-31 10:33:56 +00:00