Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Develop new payment provider v16

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
paymentpayment-providers
3 Respuestas
6483 Vistas
Avatar
Imarkas

Hi

I am developing a custom payment provider and I can't find a way to do it.

My goal is to appear on the payment providers list and set the Journal to bank


__manifest__.py
​{​

​'name': 'Payment Provider: CreateTest',​

  ​'version': '1.0',​

​ ​'category': 'Payment',​

​ ​'depends': ['payment'],​

​ ​'data': [ 'data/data.xml',​

​ ​'views/templates.xml', ],​

​ ​'installable': True,​

​ ​'auto_install': False,​

​ ​'license': 'LGPL-3',

​}


models.py

​from odoo import models, fields​
​class CreateTestPaymentProvider(models.Model): ​

​_inherit = 'payment.provider'​
​code = fields.Selection(selection_add=[('createtest', ​ ​ ​ ​'CreateTest')], ondelete={​'createtest': 'set default'})​


data.xml (Sorry, I am not allowed xml tags in the msg)

odoo

​record id="payment.payment_provider_create_test" model="payment.provider"

​field name="name">CreateTest

​field name="code">createtest

​record

odoo


When I Install this module and when I go to Payment Providers it doesn't allow me to select Journal (Bank).


Also, this payment provider doesn't appear account_payment_method_line database where all other installed providers Demo and Stripe do.


Is there proper documentation for how to develop payment provider in odoo? I see that I am clearly missing some steps.

0
Avatar
Descartar
Antoine Vandevenne (anv)

There is no documentation yet, but it is planned (count a few weeks/months). In the meantime, it's probably best to start with an existing standard payment provider module and convert it step by step to the provider you want to integrate with. I recommend starting with https://github.com/odoo/odoo/tree/16.0/addons/payment_flutterwave

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

Hi,

Inherit the payment.provider and add this code


@api.model

def _get_payment_method_information(self):

"""Override to add createtest payment method information to the

existing methods.

"""

res = super()._get_payment_method_information()

res['createtest'] = {'mode': 'unique', 'domain': [('type', '=', 'bank')]}

return res
After completing these steps, your custom payment provider should appear on the list of available payment providers, and you can set the journal to "bank" as specified in your code. 

Hope it helps

0
Avatar
Descartar
Avatar
Imarkas
Autor Mejor respuesta

Reverse engineering doesn't help. My custom module (payment provider) works and I can implement post-processing steps with it. But the main issue is it doesn't connect with account_payment_method table and I cannot assign payment journal. That means upon activating my custom payment provider it doesn't perform some silly steps that are eiher hidden from community or this is lacking some major support.

0
Avatar
Descartar
Lekhnath Rijal

I am also stuck in the same situation. Do you have any guidance on how to implement a custom payment provider?

Avatar
Niyas Raphy (Walnut Software Solutions)
Mejor respuesta

Hi,


There is no official documentation for the same. But you can refer to existing payment providers and develop your own provider. Other than default payment providers you have a lot of third party payment providers which is available for free in the odoo app store, to which you can look to understand how the module is developed and working.

Thanks

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
How to set new payment.provider
payment payment-providers
Avatar
Avatar
1
mar 24
3830
Payment is not created from an online Payment received from Authorize. NEt.
payment Authorize.net payment-providers
Avatar
0
may 24
2126
What do I need to do so I can see Payment Providers in Odoo? Resuelto
payment-providers
Avatar
Avatar
1
sept 25
3549
Payment Status Resuelto
payment
Avatar
Avatar
Avatar
Avatar
3
sept 25
10634
Check is not enabled for Internal Transfers Odoo 18
payment
Avatar
Avatar
1
sept 25
3221
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now