跳至内容
菜单
此问题已终结
1 回复
9991 查看

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.


形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
3
2月 24
2732
1
9月 20
2957
2
5月 20
5021
1
3月 16
6344
1
5月 24
1648