Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4340 มุมมอง

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


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 20
4249
0
มิ.ย. 21
3483
1
ก.พ. 21
2911
2
ก.ย. 18
8702
0
พ.ย. 20
3471