Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
915 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 24
1525
1
may 25
1770
1
may 24
2352
2
abr 24
1273
1
ene 24
1235