Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • E-learning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Horeca & Hospitality
    • Bar en café
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van mede-eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brouwerij
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Diensten
    • Klusjesman
    • IT-hardware & ondersteuning
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Alle bedrijfstakken bekijken
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijsprogramma
    • Scale Up! Business Game
    • Odoo bezoeken
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Partner worden
    • Diensten voor partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Missing dependencies - Javascript

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
javascriptbackendfrontend11
1 Beantwoorden
6139 Weergaven
Avatar
Erick David Reyes

Hello i have some doubt about the javascript and odoo, i have the following


bus = self.env['bus.bus']

message = {'subject': 'Test','body': 'Nuevo turno','mode': 'sticky','siguiente' : folio }

bus.sendone('notify_turnero_19', message)


i send a message via the bus module


i can catch the message in the odoo backend this way


odoo.define('web_notify.WebClient', function (require) {"use strict";
var WebClient = require('web.WebClient');

var base_bus = require('bus.bus');

var session = require('web.session');console.log(session);
WebClient.include({

show_application:function() {

var res = this._super();this.start_polling();returnres },


start_polling:function() {this.channel_turnero = 'notify_turnero_' + session.uid;


base_bus.bus.add_channel(this.channel_turnero);

base_bus.bus.on('notification', this, this.bus_notification);

base_bus.bus.start_polling(); },


bus_notification:function(notifications) {

varself = this;_.each(notifications, function (notification) { 

varchannel = notification[0];

varmessage = notification[1];

if (channel === self.channel_turnero) {

self.on_message_turnero(message);

} }); },


on_message_turnero:function(message){

console.log(message);

}});
});

In the console.log(message); i get the message if the user id is 19, it work fine. but i need this workflow to work on a page



<recordid="turnero_web"model="ir.ui.view"><fieldname="name">Turnero DUfield><fieldname="type">qwebfield><fieldname="arch"type="xml"><tname="turnero_web"t-name="turnero_web"><tt-call="website.layout">
t>t>field>record>

<recordid="clases_page"model="website.page"><fieldname="url">/turnerofield><fieldname="website_published">Truefield><fieldname="view_id"ref="turnero_web"/>record>


and i called the js in this new page and i get

Missing dependencies: (2) ['web.WebClient', 'bus.bus']
Rejected modules: ['portal.portal']

help me understand how the js works different in a website page, and the normal odoo interface, im working with odoo 11


0
Avatar
Annuleer
Avatar
Toan Nhu Toan
Beste antwoord

Have you solved the problem yet? I also had the same problem with you

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Odoo 11 Javascript: How to get current data from model and fields readonly status? Opgelost
javascript web backend 11
Avatar
Avatar
1
feb. 24
13217
How to resize the file web.assets_backend.js
javascript backend
Avatar
Avatar
2
dec. 22
4208
When should I use back-end views and when should I use front-end views? Opgelost
backend frontend
Avatar
Avatar
2
jun. 21
4272
Backend javascript - how transfer current id of form object to script? Opgelost
javascript backend
Avatar
1
nov. 19
19861
odoo (V11) add a new search button to Kanban control panel view
javascript frontend
Avatar
0
mrt. 19
6588
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Partner worden
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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