Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Javascript changes do not reflect when refreshing web browser tab

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
javascriptposxmlrefreshscss
4 Risposte
4010 Visualizzazioni
Avatar
Panos Anagnostakis

I have created a module that adds extra functionality to point of sale.

When I edit a javascript file in my module and refresh the pos web page, the changes are not applied.

The same happens with xml and scss changes.

The only way is to restart the odoo server and then refresh the web page.

Is there something I can do to apply changes in the client files (js,xml,scss) by refreshing the web browser page without having to restart the server prior to this?

0
Avatar
Abbandona
Avatar
Darshan Parmar
Risposta migliore

Panos Anagnostakis, if you want to reload you assets file without server reload just add  ?debug=assets after web part 
For exmaple= 

http://localhost:8090/web?debug=assets#action=1444&cids=1&menu_id=994

0
Avatar
Abbandona
Avatar
Jaiswal Shivam
Risposta migliore

Hello Panos Anagnostakis

https://chromewebstore.google.com/detail/odoo-debug/hmdmhilocobgohohpdpolmibjklfgkbi


Add this extension to your chrome browser and active aseets mode by double clicking on this and you don't need to restart the server you have to just refresh the browser and your js changes will automatically reflected

Thanks

0
Avatar
Abbandona
Panos Anagnostakis
Autore

Thanks for the suggestion!

I activated assets mode and when it refreshes i get the following error (which error doesn't occur if debug=0 or debug=1, only for debug=assets):


Chrome.js:92 TypeError: Cannot read properties of null (reading 'addEventListener')
at hooks.js:155:1
at ProductsWidget.<anonymous> (owl.js:5781:1)
at owl.js:2561:1
at RootFiber.complete (owl.js:1670:1)
at Scheduler.processFiber (owl.js:5560:1)
at owl.js:5535:1
at Set.forEach (<anonymous>)
at owl.js:5535:1
Chrome.js:92 TypeError: Cannot read properties of null (reading 'addEventListener')
at hooks.js:155:1
at SetSaleOrderButton.<anonymous> (owl.js:5781:1)
at owl.js:2561:1
at RootFiber.complete (owl.js:1670:1)
at Scheduler.processFiber (owl.js:5560:1)
at owl.js:5535:1
at Set.forEach (<anonymous>)
at owl.js:5535:1
(anonymous) @ Chrome.js:92
_handleError @ owl.js:106
_handleError @ owl.js:118
_handleError @ owl.js:118
handleError @ owl.js:136
handleError @ owl.js:5700
complete @ owl.js:1687
processFiber @ owl.js:5560
(anonymous) @ owl.js:5535
(anonymous) @ owl.js:5535
requestAnimationFrame (async)
flush @ owl.js:5533
setCounter @ owl.js:1693
_render @ owl.js:1626
render @ owl.js:1613
updateAndRender @ owl.js:2449
await in updateAndRender (async)
(anonymous) @ owl.js:5673
template @ VM2039:66
node.renderFn @ owl.js:2637
_render @ owl.js:1621
render @ owl.js:1613
updateAndRender @ owl.js:2449
await in updateAndRender (async)
(anonymous) @ owl.js:5673
slot1 @ VM2017:37
callSlot @ owl.js:2896
template @ VM2018:10
_render @ owl.js:1621
render @ owl.js:1613
updateAndRender @ owl.js:2449
await in updateAndRender (async)
(anonymous) @ owl.js:5673
template @ VM2017:132
node.renderFn @ owl.js:2637
_render @ owl.js:1621
render @ owl.js:1613
render @ owl.js:2391
await in render (async)
render @ owl.js:2660
(anonymous) @ Chrome.js:201
Promise.then (async)
_runBackgroundTasks @ Chrome.js:200
(anonymous) @ Chrome.js:151
setTimeout (async)
start @ Chrome.js:151
await in start (async)
start @ Chrome.js:10
start @ Chrome.js:8
configureAndStart @ chrome_adapter.js:75
setup @ Chrome.js:95
ComponentNode @ owl.js:2325
(anonymous) @ owl.js:5691
template @ VM2007:12
_render @ owl.js:1621
render @ owl.js:1613
initiateRender @ owl.js:2347
await in initiateRender (async)
(anonymous) @ owl.js:5693
template @ VM2006:14
_render @ owl.js:1621
render @ owl.js:1613
initiateRender @ owl.js:2347
await in initiateRender (async)
mountComponent @ owl.js:2331
mountNode @ owl.js:5636
mount @ owl.js:5607
startWebClient @ start.js:48
await in startWebClient (async)
startPosApp @ main.js:33
(anonymous) @ main.js:36
(anonymous) @ boot.js:127
processJob @ boot.js:125
processJobs @ boot.js:196
(anonymous) @ boot.js:137
Promise.then (async)
(anonymous) @ boot.js:134
processJob @ boot.js:125
processJobs @ boot.js:196
(anonymous) @ boot.js:137
Promise.then (async)
(anonymous) @ boot.js:134
processJob @ boot.js:125
processJobs @ boot.js:196
odoo.define @ boot.js:253
(anonymous) @ legacy_setup.js:1

Avatar
Panos Anagnostakis
Autore Risposta migliore

I'm working on odoo 16

0
Avatar
Abbandona
Avatar
Nikhil Nakrani
Risposta migliore

Hi Panos Anagnostakis,

which version odoo?

if its before 15 you need add xml/assests file to add your all assets

and if after 15 then you need add assets in manifest.

Thanks

0
Avatar
Abbandona
Panos Anagnostakis
Autore

I'm working on odoo 16

Panos Anagnostakis
Autore

My problem isn't that the assets are not working. I've already added the file paths in manifest.py. My problem is that if I make a change in an asset file, I have to restart the odoo server before refreshing the web browser page in order to make my change be applied.

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Max allowed quantity in pos
javascript pos xml odoo10.0
Avatar
0
set 20
38
How to hide/show custom button based on condition in odoo10 Point of sale ? Risolto
javascript pos xml odoo10.0
Avatar
Avatar
Avatar
4
mag 18
13889
t-foreach not working on POS template screen Risolto
javascript pos xml template owl
Avatar
Avatar
Avatar
2
giu 23
4185
click by div class in POS POPUP , Data from web model Odoo 10
javascript pos xml web odoo10
Avatar
0
feb 17
4422
does odoo 17 allow to add button to Navbar header in point of sale session inside it to get dynamic data
javascript pos
Avatar
Avatar
1
nov 24
2241
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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