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

Existing module customization not working

Iscriviti

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

La domanda è stata contrassegnata
modulescacheupdateajax
2 Risposte
5043 Visualizzazioni
Avatar
Testing

I am trying to update some static text in template name "ajax_login_template.xml" inside (website_ajax_login module). I have restored an existing dump file without any errors. 

The issue is that I can't see the changes after updating the app (in developer mood). 

To my surprise, the changes get visible when I use new database instead of the dumped version and fresh install website_ajax_login_module.


Summary of my problem is as follows.


First Attempt


Step 1 -> Restore dump file into a database.


Step 2 -> Update template.xml file


Step 3 -> Activate Developer Mood and upgrade App. 


Result ===> Changes Not Visible.


Also if I click on top menu item "Customize -> HTML/CSS editor". No windows open at the right side of the screen.


Second Attempt 


Step 1:  Go to web database manager view

Step 2: Create a database (not restore list in the first attempt)


Step 3: Install website_ajax_login app


Result ====> Changes Visible I made in the template.xml file.


if I click on top menu item "Customize -> HTML/CSS editor". The window opens on the right side of the screen without any problem.




Is there some cache etc involved in this error. When using the dumped version of my database, I see the error logs as follows.




2020-05-18 10:58:57,541 127210 INFO archixpress odoo.addons.base.models.ir_attachment: _read_file reading /home/shahzeb/.local/share/Odoo/filestore/archixpress/bd/bdbf3e6ea7597eb4b2305c7e8e083430facaa1b2 


Traceback (most recent call last):


  File "/opt/odoo/odoo/odoo/api.py", line 1039, in get


    value = self._data[key][field][record._ids[0]]


KeyError: 38054




During handling of the above exception, another exception occurred:




Traceback (most recent call last):


  File "/opt/odoo/odoo/odoo/fields.py", line 976, in __get__


    value = record.env.cache.get(record, self)


  File "/opt/odoo/odoo/odoo/api.py", line 1041, in get


    raise CacheMiss(record, field)


odoo.exceptions.CacheMiss: ('ir.attachment(38054,).datas', None)




During handling of the above exception, another exception occurred:




Traceback (most recent call last):


  File "/home/shahzeb/Projects/Wiztech/odoo/odoo/odoo/addons/base/models/ir_attachment.py", line 113, in _file_read


    r = base64.b64encode(open(full_path,'rb').read())


FileNotFoundError: [Errno 2] No such file or directory: '/home/shahzeb/.local/share/Odoo/filestore/archixpress/bd/bdbf3e6ea7597eb4b2305c7e8e083430facaa1b2'


2020-05-18 10:58:57,561 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:57] "GET /web/image/38054/160x160/ HTTP/1.1" 304 - 5 0.009 0.041


2020-05-18 10:58:57,575 127210 INFO archixpress odoo.addons.base.models.ir_attachment: _read_file reading /home/shahzeb/.local/share/Odoo/filestore/archixpress/26/269f4b4e91c4bc57d9d535ad3c8fcd907d975031 


Traceback (most recent call last):


  File "/opt/odoo/odoo/odoo/api.py", line 1039, in get


    value = self._data[key][field][record._ids[0]]


KeyError: 38056




During handling of the above exception, another exception occurred:




Traceback (most recent call last):


  File "/opt/odoo/odoo/odoo/fields.py", line 976, in __get__


    value = record.env.cache.get(record, self)


  File "/opt/odoo/odoo/odoo/api.py", line 1041, in get


    raise CacheMiss(record, field)


odoo.exceptions.CacheMiss: ('ir.attachment(38056,).datas', None)




During handling of the above exception, another exception occurred:




Traceback (most recent call last):


  File "/home/shahzeb/Projects/Wiztech/odoo/odoo/odoo/addons/base/models/ir_attachment.py", line 113, in _file_read


    r = base64.b64encode(open(full_path,'rb').read())


FileNotFoundError: [Errno 2] No such file or directory: '/home/shahzeb/.local/share/Odoo/filestore/archixpress/26/269f4b4e91c4bc57d9d535ad3c8fcd907d975031'


2020-05-18 10:58:57,578 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:57] "GET /web/image/38056/160x160/ HTTP/1.1" 304 - 5 0.009 0.041


2020-05-18 10:58:58,001 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:58] "POST /web/dataset/call HTTP/1.1" 200 - 3 0.051 0.032


2020-05-18 10:58:58,079 127210 INFO archixpress werkzeug: 127.0.0.1 - - [18/May/2020 10:58:58] "POST /website/translations HTTP/1.1" 200 - 12 0.116 0.142


2020-05-18 10:58:58,095 127210 INFO archixpress odoo.addons.base.models.ir_attachment: _read_file reading /home/shahzeb/.local/share/Odoo/filestore/archixpress/cd/cd5a21b5fca4934040122813fb0d1214003f6ca7 


Traceback (most recent call last):


  File "/opt/odoo/odoo/odoo/api.py", line 1039, in get


    value = self._data[key][field][record._ids[0]]


KeyError: 38113




During handling of the above exception, another exception occurred:




Traceback (most recent call last):


  File "/opt/odoo/odoo/odoo/fields.py", line 976, in __get__


    value = record.env.cache.get(record, self)


  File "/opt/odoo/odoo/odoo/api.py", line 1041, in get


    raise CacheMiss(record, field)


odoo.exceptions.CacheMiss: ('ir.attachment(38113,).datas', None)




During handling of the above exception, another exception occurred:






I shall appreciate if someone can put me on the right track.

0
Avatar
Abbandona
Ermin Trevisan

pg_dump does only backup the database, but not the filestore. Therefore your attachments in the filestore are missing.

Testing
Autore

@Ermin thank you for the response. Actually there are still folders inside the "filestore" folder. The difference is that the file names are changed. My question is, Do I need to copy the exact files from server's filestore folder? And Do you think that the customize css editor issue (when i click on the menu item, the window does not open) is due to the same missing files?

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à
Update all odoo modules at once Risolto
modules update
Avatar
Avatar
1
mar 23
7033
Cant modify source code Odoo V16 !!
modules update
Avatar
Avatar
2
feb 23
4058
"update modules list" failure
modules update
Avatar
Avatar
1
mar 15
5461
module update Risolto
modules update
Avatar
Avatar
Avatar
3
mar 15
6059
Cannot Update Modules - Odoo v8
modules update
Avatar
Avatar
1
mar 15
5698
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