Skip to Content
Menu
This question has been flagged
1 Atsakyti
4377 Rodiniai

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


Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
lapkr. 20
4277
0
birž. 21
3525
1
vas. 21
2919
2
rugs. 18
8723
0
lapkr. 20
3489