İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
940 Görünümler

Hi,

Is it possible in v17 to setup a price specific rule for a payment method, so it is only visable for eCommerce customers if the order is above a specific amount? We want to make this rule for the wire transfer payment provider.

Avatar
Vazgeç
En İyi Yanıt

Hi

In Odoo default we have one feature to add the maximum amount for any payment method but there is no option for a minimum option to restrict payment method.

But this is a very small customisation if you want you need to add one field min_amount in payment.provider and then add the same field in view as well.

after that, there is one function that verifies all conditions like country and state and on this basis, they allow Payment providers on the website so you need to inherit the function and then simply check the condition for a minimum price if verified then ok then remove the provider from the provider.

function name = _get_compatible_providers

Thanks

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ağu 24
1586
1
May 25
1872
1
May 24
2506
2
Nis 24
1359
1
Oca 24
1301