Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4332 Näkymät

I'm trying to build a custom payment acquirer, for odoo 14.0

I'm stuck at figuring how what's causing the installer to fail at a ParseError when reading the payment acquirer data record xml.

I don't see any obvious spelling errors, and I've gone through each line to figure out which one is causing the error. I've eliminated a few fields.

These fields install without any errors: name, company_id, payment_flow, pre_msg, pending_msg, done_msg

The fields that cause the installation of the payment acquirer to fail are as follows: provider, view_template_id, registration_view_template_id, environment, and all my custom fields.


The code is publicly available here: https://github.com/t-900-a/odoo-solana-payments

The file in question is here: https://github.com/t-900-a/odoo-solana-payments/blob/main/data/solana_sol_payment_acquirer.xml

The log from the failed installation is here: https://siasky.net/CAAOumg4APg9bRC12s0IxfL1epH6s3dsc8573HFH3o1Y3A


Here is a snippet of the log error, but see the file for complete error message:


odoo.tools.convert.ParseError: while parsing file:/c:/users/anon/pycharmprojects/odoo-solana-payments/data/solana_sol_payment_acquirer.xml:25, near
<record id="payment_acquirer_solana_sol" model="payment.acquirer">


Thank you for your help


Edit: github issue created https://github.com/odoo/odoo/issues/61335


Avatar
Hylkää
Tekijä Paras vastaus

fixed
<field name="environment">test</field> WRONG
<field name="state">test</field> RIGHT

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
marrask. 20
4246
0
kesäk. 21
3482
1
helmik. 21
2909
2
syysk. 18
8698
0
marrask. 20
3471