Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
9631 Vistas

Good day,

I am new to Odoo development and Python. I am, however, building a new payment acquirer but I am stuck at this error:


 File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 527, in _tag_record
raise Exception("Cannot update missing record %r" % xid)
odoo.tools.convert.ParseError: "Cannot update missing record 'payment.payment_acquirer_payweb'" while parsing file:/c:/program files (x86)/odoo 13.0/server/odoo/addons/payment_payweb/data/payment_acquirer_data.xml:2, near
<odoo>
<data noupdate="0">
<record id="payment.payment_acquirer_payweb" model="payment.acquirer">
<field name="name">Payweb</field>
<field name="image_128" type="base64" file="payment_payweb/static/description/icon.png"/>
<field name="provider">payweb</field>
<field name="company_id" ref="base.main_company"/>
<field name="view_template_id" ref="payment_payweb.payweb_form"/>

I have no idea how to resolve this. I have checked my database but the acquirer is not already installed.


Avatar
Descartar
Mejor respuesta

Hey,

I am currently adding a new payment acquirer too!

Change

<record id="payment.payment_acquirer_payweb" model="payment.acquirer">


TO


<record id="payment_acquirer_payweb" model="payment.acquirer">


This will tell Odoo that you want to add a new record, not override payment.payment_acquirer_payweb which obviously is not existing


Regards,

Louie

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
feb 24
2353
1
sept 20
2707
2
may 20
4746
1
mar 16
6096
1
may 24
1265