تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

Payment gateway module creation howto

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
modulegatewaypaymenttemplatescaffold
2 الردود
9650 أدوات العرض
الصورة الرمزية
Albert

Hello,

I am digging into creating a payment gateway module in Odoo 10. So far I have done the following:

- Copied the paypal payment module as base

- Changed all occurrences of paypal with pagseguro

- Changed all occurrences of Paypal with PagSeguro

- Renamed files containing *paypal* with *pagseguro*

I was expecting to at least be able to install the module and later understand how it works and write the necessary logic, however I am having this error during installation.

I was wondering if anyone could please guide me on what the problem could be. I also tried the same thing with another payment gateway as base and I had the same error [1].

Alternatively, is there any payment gateway skeleton/scaffold/bob-template so I can start with?

Thank you very much!

[1]: Herewith the installation error

  File "/home/av/repos/volunteering/abba/abba10.odoo/parts/odoo/odoo/models.py", line 3901, in _create
    self._check_selection_field_value(name, val)
  File "/home/av/repos/volunteering/abba/abba10.odoo/parts/odoo/odoo/models.py", line 2116, in _check_selection_field_value
    field.convert_to_cache(value, self)
  File "/home/av/repos/volunteering/abba/abba10.odoo/parts/odoo/odoo/fields.py", line 1739, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ParseError: "Wrong value for payment.acquirer.provider: 'pagseguro'" while parsing /home/av/repos/volunteering/abba/abba10.odoo/addons/addons_haevas_payment/payment_pagseguro/data/payment_acquirer_data.xml:4, near
<record id="payment.payment_acquirer_pagseguro" model="payment.acquirer">
            <field name="name">PagSeguro</field>
            <field name="image" type="base64" file="payment_pagseguro/static/src/img/pagseguro_icon.png"/>
            <field name="provider">pagseguro</field>
            <field name="company_id" ref="base.main_company"/>
            <field name="view_template_id" ref="pagseguro_acquirer_button"/>
            <field name="environment">test</field>
            <field name="pre_msg">
&lt;p&gt;You will be redirected to the PagSeguro website after clicking on the payment button.&lt;/p&gt;</field>
            <field name="pagseguro_email_account">dummy</field>
            <field name="pagseguro_token">dummy</field>
            <field name="pagseguro_redirect_url">dummy</field>
            <field name="pagseguro_notification_url">dummy</field>
        </record>
2
الصورة الرمزية
إهمال
الصورة الرمزية
phuongtai2020@gmail.com
أفضل إجابة

I also have this problem. After searching code, I find a reason:

    def _check_selection_field_value(self, field, value):

        """ Check whether value is among the valid values for the given

            selection/reference field, and raise an exception if not.

        """

  Therefore, You must override field provider with add_selection:

Example for your instance: 

provider = fields.Selection(selection_add=[('pagseguro', 'Pagseguro')])


0
الصورة الرمزية
إهمال
الصورة الرمزية
Rodrigo Velazquez
أفضل إجابة

Cannot comment on this.. I am trying something similar and also get the error:

Wrong value for payment.acquirer.provider

Has anyone been able to successfully resolve this error?


0
الصورة الرمزية
إهمال
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
adding custom message to payment confirmation status view
modules module gateway payment acquirer
الصورة الرمزية
1
نوفمبر 20
5038
custom payment acquirer, xml ParseError when parsing acquirer record data
modules module gateway payment acquirer
الصورة الرمزية
1
نوفمبر 20
5137
New Payment gateway integration
module payment
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
2
أغسطس 17
5557
Assertion Error Template is required when i click the pay button(odoo 18)
payment template Odoo 18
الصورة الرمزية
الصورة الرمزية
1
يونيو 25
2046
Malaysian Payment Gateways
gateway payment Acquirer
الصورة الرمزية
0
نوفمبر 22
3025
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now