Skip to Content
Menu
This question has been flagged
1 Reply
8665 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
3
Feb 24
1302
1
Sep 20
2051
2
May 20
3966
1
Mar 16
5462
1
May 24
1265