Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita 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
  • Proyectos
  • 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

KeyError: '' - - -. Odoo12 Enterprise POS

Suscribirse

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

Se marcó esta pregunta
enterpriseenterprisedbpoint_of_saleodoo12
2821 Vistas
Avatar
Jugert Mucoimaj

Hello,
I'm a new developer in odoo and I have 3 months that I have started. During a task that was given me by my company I work with I had this problem which affected all databases and not just only one.
I was working in a report for odoo Point Of Sale and my goal was to take some variable values which included the money a session in pos ends. So I made a module inheriting "pos.session" and after looking at it, the module was working fine but there was still little things to be added. While changing the code I ended up with a recursion error and even though I stopped the service, the database somehow affected other databases.
I'm working on odoo12 and the error that it gives me is:



Traceback (most recent call last):
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 60, in __new__
    return cls.registries[db_name]
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/tools/func.py", line 69, in wrapper
    return func(self, *args, **kwargs)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: 'bardemo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/loading.py", line 430, in load_modules
    registry.setup_models(cr)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 274, in setup_models
    model._setup_fields()
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/models.py", line 2658, in _setup_fields
    field.setup_full(self)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 520, in setup_full
    self._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 1392, in _setup_related_full
    super(Monetary, self)._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 563, in _setup_related_full
    field = target._fields[name]
KeyError: ''
2022-05-26 08:16:11,366 10550 INFO bardemo werkzeug: 192.168.1.69 - - [26/May/2022 08:16:11] "GET /favicon.ico HTTP/1.1" 500 - 13 0.017 0.424
2022-05-26 08:16:11,372 10550 ERROR bardemo werkzeug: Error on request:
Traceback (most recent call last):
  File "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3.8/site-packages/werkzeug/serving.py", line 205, in run_wsgi
    execute(self.server.app)
  File "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3.8/site-packages/werkzeug/serving.py", line 193, in execute
    application_iter = app(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/service/server.py", line 436, in app
    return self.app(e, s)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/service/wsgi_server.py", line 142, in application
    return application_unproxied(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied
    result = odoo.http.root(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1320, in __call__
    return self.dispatch(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1293, in __call__
    return self.app(environ, start_wrapped)
  File "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3.8/site-packages/werkzeug/wsgi.py", line 599, in __call__
    return self.app(environ, start_response)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1471, in dispatch
    odoo.registry(db).check_signaling()
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/__init__.py", line 117, in registry
    return modules.registry.Registry(database_name)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 62, in __new__
    return cls.new(db_name)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/loading.py", line 430, in load_modules
    registry.setup_models(cr)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/modules/registry.py", line 274, in setup_models
    model._setup_fields()
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/models.py", line 2658, in _setup_fields
    field.setup_full(self)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 520, in setup_full
    self._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 1392, in _setup_related_full
    super(Monetary, self)._setup_related_full(model)
  File "/home/thecowmilk/Development/odoo12/odoo/odoo/fields.py", line 563, in _setup_related_full
    field = target._fields[name]
KeyError: '' - - -

0
Avatar
Descartar
Gopakumar N G

The best way for you is to revert the changes and check whether it will solve the problem, maybe in a database backup. It looks like the error log is incomplete and we cannot help you without knowing the changes you have made.

Jugert Mucoimaj
Autor

Hello Gopakumar, thanks for answering. I solved the problem installing the pos module from github. I don't know what happened and why it affected other dbs.

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

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Two Reports, One Template Sale order Report [Odoo 12 Enterprise] Resuelto
enterprise odoo12
Avatar
Avatar
1
nov 19
4328
odoo 12 custom pos lock screen module this.pos is null
point_of_sale odoo12
Avatar
0
mar 19
4840
On-premise: Community to Enterprise. odoo-bin not found
upgrading enterprise enterprisedb
Avatar
0
jul 25
1489
Settings Dashboard in Odoo12
enterprise url odoo12
Avatar
Avatar
Avatar
2
ago 23
2739
"AttributeError: 'bool' object has no attribute 'date'" when trying to access the point of sale module. Resuelto
bugs point_of_sale odoo12
Avatar
Avatar
2
may 23
11939
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • 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 estar 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