Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
10061 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
févr. 24
2809
1
sept. 20
3012
2
mai 20
5127
1
mars 16
6428
1
mai 24
1720