Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • อีคอมเมิร์ซ
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • Artificial Intelligence
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    อาหาร & การบริการ
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • เกสต์เฮ้าส์
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • โรงแรม
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • Property Management
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • โรงผลิตเบียร์
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    รับการสาธิต
  • ราคา
  • ช่วยเหลือ
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

Error in Odoo 18 while creating a PaymentProvider

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
errorxmlwidgetjsontypeerrorodoo18v18Odoo18.0Odoo18paymentproviderOdoov18
1 ตอบกลับ
2799 มุมมอง
อวตาร
TestWhatever, Van Hullebusch Tanguy

Hello.

I found myself with this error while trying to integrate a widget for my PaymentProvider and I have no idea where it could come from since I wasn't even aware what zoomOdoo was until this error.

Odoo Client Error

UncaughtPromiseError > TypeError

Uncaught Promise > this.$(...).zoomOdoo is not a function

Occured on localhost:8069 on 2025-05-20 13:56:17 GMT

TypeError: this.$(...).zoomOdoo is not a function
    start@http://localhost:8069/web/assets/1/e02ac72/web.assets_frontend.min.js:9011:1491
    OdooClass.extend/</prototype[name]<@http://localhost:8069/web/assets/1/e02ac72/web.assets_frontend.min.js:3243:516
    attachTo/<@http://localhost:8069/web/assets/1/e02ac72/web.assets_frontend.min.js:6397:13
    


Do you have any idea what could have caused it ?


Since this error appeared while I was troubleshooting a .js file, which should integrate the widget in a view, I'll post the .js and the view too.

The .js file :

/** @odoo-module **/
console.log("payment_form.js loaded");
import paymentForm from '@payment/js/payment_form';

paymentForm.include({

// #=== DOM MANIPULATION ===#
_processPayment: function (providerCode) {

console.log("_processPayment en route : " + providerCode);

var self = this;
if (providerCode !== 'monext') {
return this._super.apply(this, arguments);
}

var txRef = this.$('input[name="reference"]').val();
if (!txRef) {
this.displayError({ message: "Référence de transaction introuvable." });
return Promise.reject();
}

return this._rpc({
route: 'checkout/payments/sessions',
params: { txRef: txRef },
}).then(function (result) {
var token = result.token;
if (!token) {
self.displayError({ message: "Token Monext introuvable." });
return Promise.reject();
}

if (!document.querySelector('script[src*="widget-min.js"]')) {
var script = document.createElement('script');
script.src = 'https://homologation-payment.cdn.payline.com/cdn/scripts/widget-min.js';
script.onload = function () {
console.log("Script Monext chargé avec succès.");
self._renderMonextWidget(token);
};
script.onerror = function () {
console.error("Erreur lors du chargement du script Monext.");
}
document.head.appendChild(script);
} else {
self._renderMonextWidget(token);
}

return Promise.resolve();
}).catch(function (error) {
self.displayError({ message: "Erreur lors de la récupération du token." });
return Promise.reject();
});
},

_renderMonextWidget: function (token) {
// Créer le widget Monext
// 1. Supprimer l'ancien widget s'il existe
// 2. Créer un nouveau div pour le widget
// 3. Ajouter le div au DOM
var container = document.getElementById('PaylineWidgetContainer');
if (!container) {
console.error("PaylineWidgetContainer not found in DOM.");
return;
}

var oldWidget = document.getElementById('PaylineWidget');
if (oldWidget) oldWidget.remove();

var widgetContainer = document.createElement('div');
widgetContainer.id = 'PaylineWidget';
widgetContainer.setAttribute('data-token', token);
widgetContainer.setAttribute('data-template', 'column');
widgetContainer.setAttribute('data-embeddedredirectionallowed', 'false');

if (!this.el) {
console.error("this.el is undefined or null.");
} else {
console.log("this.el exists:", this.el);
}

this.el.appendChild(widgetContainer);

if (!document.getElementById('PaylineWidget')) {
console.log("Le widget Monext n'a pas pu être créé.");
} else {
console.log("Le widget Monext a été créé avec succès.");
}
},

})


The view :

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="payment_monext_templates" name="Monext Retail's Payment Form" inherit_id="payment.form">
<xpath expr="//form[@id='o_payment_form']" position="inside">
<t t-call-assets="web.assets_frontend" t-js="true"/>
<div id="PaylineWidgetContainer">
<!-- payment_form.js charge le widget içi-->
</div>
</xpath>
</template>
</odoo>

I am working with Odoo Community on-premise with version 18.


Thank you in advance.

0
อวตาร
ละทิ้ง
อวตาร
TestWhatever, Van Hullebusch Tanguy
ผู้เขียน คำตอบที่ดีที่สุด

Nevermind, I forgot to put the script in the view.

0
อวตาร
ละทิ้ง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
EDI Proxy - replace installation แก้ไขแล้ว
odoo18 18.0 Odoo18.0 Odoo18 CommunityEdition
อวตาร
อวตาร
อวตาร
3
ก.พ. 26
3377
Issue with Reset Password Link in Odoo 18 Community Edition
password pos email reset resetpassword odoo18 Odoo18.0 Odoo18
อวตาร
0
มี.ค. 25
3586
How to Conditionally Hide a Field in Odoo XML Based on HTML Field Content?
xml odoo18
อวตาร
0
ม.ค. 25
2245
[Solved]Error in Odoo: Exception during JSON request handling แก้ไขแล้ว
error json
อวตาร
อวตาร
อวตาร
4
ส.ค. 17
41651
Access Error on credit_limit / show_credit_limit when creating User from Employee (Odoo 18)
employees odoo18 v18
อวตาร
0
มี.ค. 26
667
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบคลังสินค้า ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ Odoo คือการใช้งานที่ง่ายดายและผสานการทำงานอย่างสมบูรณ์แบบในเวลาเดียวกัน

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