Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Error in Odoo 18 while creating a PaymentProvider

Subscribe

Get notified when there's activity on this post

This question has been flagged
errorxmlwidgetjsontypeerrorodoo18v18Odoo18.0Odoo18paymentproviderOdoov18
1 Reply
1621 Views
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
Discard
Avatar
Van Hullebusch Tanguy
Author Best Answer

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

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
EDI Proxy - replace installation
odoo18 18.0 Odoo18.0 Odoo18 CommunityEdition
Avatar
Avatar
Avatar
3
Nov 25
2110
Issue with Reset Password Link in Odoo 18 Community Edition
password pos email reset resetpassword odoo18 Odoo18.0 Odoo18
Avatar
0
Mar 25
2368
How to Conditionally Hide a Field in Odoo XML Based on HTML Field Content?
xml odoo18
Avatar
0
Jan 25
1463
[Solved]Error in Odoo: Exception during JSON request handling Solved
error json
Avatar
Avatar
Avatar
4
Aug 17
40332
Error for event registration
error events v18
Avatar
0
Mar 25
1180
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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