Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
10071 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 2 24
2811
1
thg 9 20
3013
2
thg 5 20
5129
1
thg 3 16
6429
1
thg 5 24
1721