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.
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