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
    • e-learning
    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
    • Conocimientos
    • 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 pub
    • 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
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • 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
    Explorar todos los sectores
  • 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
    • Servicios para 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

how to resolve this error in owl framework? KeyNotFoundError

Suscribirse

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

Se marcó esta pregunta
4 Respuestas
3743 Vistas
Avatar
admin
KeyNotFoundError: Cannot find owl.action_bag_owl in this registry!
    Error: Cannot find owl.action_bag_owl in this registry!

this error is came when i try to overide owl component

/* @odoo-module */
import { registry } from "@addons/web/core/registry";
//const {Component, useState} = owl;
import { Component, useState } from "@addons/odoo/owl";

export class OwlBagList extends Component {
setup() { this.state=useState({value:1})}
}
OwlBagList.template = 'owl.BagList'
registry.category("actions").add("owl.action_bag_owl", OwlBagList);
record id="action_bag_owl_id" model="ir.actions.client"
field name="name">Bags List owl field
field name="tag">owl.action_bag_owl field
record

now in view i am using same tag as owl.action_bag_owl and in js file also i am using same  owl.action_bag_owl so why i am getting that error

0
Avatar
Descartar
admin
Autor

anyone solve error

Avatar
Akshat Gupta
Mejor respuesta

Ensure JavaScript File Loading: Make sure your JavaScript file is being correctly included in web.assets_backend. You need to add the script reference in your XML file as follows:


   
       
           
       
   

Check Template Definition: Verify that the template owl.BagList is defined correctly in your XML file:


   

       

Your Owl Component


       
   

Correct Imports: Double-check the import paths in your JS file:

import { registry } from "@web/core/registry";
import { Component, useState } from "owl";

Ensure these paths match the Odoo module paths for Odoo 17.


Ensure Correct XML Record Structure: Make sure the ir.actions.client record is properly defined in your XML file:


    Bags List Owl
    owl.action_bag_owl

Restart Odoo and Clear Cache: After making changes, always restart your Odoo server and clear your browser cache to ensure all assets are reloaded.

0
Avatar
Descartar
Avatar
admin
Autor Mejor respuesta

Hi,

Thanks cybrosys for replying. i have checked __manifest__.py file where i have added 

'assets': {
'web.assets_backened': [
'my_bags/static/src/components/bag_list/OwlBagList.js',
'my_bags/static/src/components/bag_list/bag_list.xml',
],
},

and also i have  update the import statements for the registry and OWL  components in js file

import { Component, useState } from "@odoo/owl";
import { registry } from "@web/core/registry";

but still i am getting this error

KeyNotFoundError: Cannot find owl.action_bag_owl in this registry!
    Error: Cannot find owl.action_bag_owl in this registry!

can you resolve it

0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

Hi,


Please check your __manifest__.py file to ensure that your JS file is properly included in the assets bundle of your module:


'assets': {

    'web.assets_backend': [

        '/path/to/your/js',

    ],

}


Make sure the path to your JS file is correct. Also, update the import statements for the registry and OWL components:


import { registry } from "@web/core/registry";

import { Component, useState } from "@odoo/owl";


Hope it helps

0
Avatar
Descartar
Avatar
Marc Demo
Mejor respuesta

change the import statements like

import { registry } from "@web/core/registry";
import { Component, useState } from "@odoo/owl";



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

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

Inscribirse
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