تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6893 أدوات العرض

I'm trying to integrate mercury payment gateway to 'website' module. While creating a data file, I am getting an error of extra element but I did as it's done in base code and I took reference of PayPal integration. 
here is my code,

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="payment_acquirer_mercury" model="payment.acquirer">
        <field name="name">Mercury</field>
        <field name="image" type="base64" file="payment_mercury/static/src/img/mercury_icon.png"/>
        <field name="provider">mercury</field>
        <field name="company_id" ref="base.main_company"/>
        <field name="view_template_id" ref="mercury_acquirer_button"/>
        <field name="environment">test</field>
        <field name="pre_msg"><![CDATA[
<p>You will be redirected to the Mercury website after clicking on the payment button.</p>]]></field>
        <field name="mercury_merchant_id">dummy</field>
        <field name="mercury_password" password="True">dummy</field>
    </record>
</odoo>
الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I got the answer, it was a silly mistake, in the data file you can't do view related modification. By removing 'password="True"' it worked,

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 24
20219
1
سبتمبر 23
3033
3
مايو 23
5635
7
أبريل 23
49009
1
ديسمبر 22
7876