Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Existing module customization not working

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
modulescacheupdateajax
2 Respuestas
5034 Vistas
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
Descartar
Ermin Trevisan

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

Testing
Autor

@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?

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Update all odoo modules at once Resuelto
modules update
Avatar
Avatar
1
mar 23
7023
Cant modify source code Odoo V16 !!
modules update
Avatar
Avatar
2
feb 23
4050
"update modules list" failure
modules update
Avatar
Avatar
1
mar 15
5458
module update Resuelto
modules update
Avatar
Avatar
Avatar
3
mar 15
6056
Cannot Update Modules - Odoo v8
modules update
Avatar
Avatar
1
mar 15
5697
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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