Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Error in Odoo 18 while creating a PaymentProvider

Odoberať

Get notified when there's activity on this post

This question has been flagged
errorxmlwidgetjsontypeerrorodoo18v18Odoo18.0Odoo18paymentproviderOdoov18
1 Odpoveď
1797 Zobrazenia
Avatar
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
Avatar
Zrušiť
Avatar
Van Hullebusch Tanguy
Autor Best Answer

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

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
EDI Proxy - replace installation
odoo18 18.0 Odoo18.0 Odoo18 CommunityEdition
Avatar
Avatar
Avatar
3
nov 25
2280
Issue with Reset Password Link in Odoo 18 Community Edition
password pos email reset resetpassword odoo18 Odoo18.0 Odoo18
Avatar
0
mar 25
2588
How to Conditionally Hide a Field in Odoo XML Based on HTML Field Content?
xml odoo18
Avatar
0
jan 25
1537
[Solved]Error in Odoo: Exception during JSON request handling Solved
error json
Avatar
Avatar
Avatar
4
aug 17
40557
XMLSyntaxError when installing custom module
error xml mail.template
Avatar
0
dec 25
3
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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

Odoo je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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