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

Getting "NotImplementedError" traceback when installing a v14 module in v15 - it probably has to do with web assets.

Suscribirse

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

Se marcó esta pregunta
moduleenterpriseassetsTracebackv15
1 Responder
5529 Vistas
Avatar
Steven Bouillon

Hello,

I'm installing a module that was made for Odoo 14.0 Enterprise inside of Odoo 15.0 Enterprise. It works in 14.0 but it completely crashes Odoo in 15.0. I'm hoping to get someone to give me an idea of where to look since the traceback is pretty generic.


It might have something to do with my assets. I moved assets from assets.xml (inherit=web.assets_backend) to the manifest.py 



'assets': {
'web.assets_backend': [
'excederin/static/**/**/*',
],
},
'uninstall_hook': 'uninstall_hook',

}


2021-12-14 22:34:58,155 2201752 ERROR test werkzeug: Error on request:
Traceback (most recent call last):
File "/home/iHaveAmigraine/odoo/.venv/lib/python3.9/site-packages/werkzeug/serving.py", line 306, in run_wsgi
execute(self.server.app)
File "/home/iHaveAmigraine/odoo/.venv/lib/python3.9/site-packages/werkzeug/serving.py", line 294, in execute
application_iter = app(environ, start_response)
File "/home/iHaveAmigraine/odoo/odoo/service/wsgi_server.py", line 112, in application
return application_unproxied(environ, start_response)
File "/home/iHaveAmigraine/odoo/odoo/service/wsgi_server.py", line 87, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/home/iHaveAmigraine/odoo/odoo/http.py", line 1313, in __call__
return self.dispatch(environ, start_response)
File "/home/iHaveAmigraine/odoo/odoo/http.py", line 1279, in __call__
return self.app(environ, start_wrapped)
File "/home/iHaveAmigraine/odoo/.venv/lib/python3.9/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
return self.app(environ, start_response)
File "/home/iHaveAmigraine/odoo/odoo/http.py", line 1489, in dispatch
result = ir_http._dispatch()
File "/home/iHaveAmigraine/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "/home/iHaveAmigraine/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/home/iHaveAmigraine/odoo/addons/utm/models/ir_http.py", line 29, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "/home/iHaveAmigraine/odoo/addons/http_routing/models/ir_http.py", line 431, in _dispatch
rule, arguments = cls._match(request.httprequest.path)
File "/home/iHaveAmigraine/odoo/odoo/addons/base/models/ir_http.py", line 90, in _match
return cls.routing_map().bind_to_environ(request.httprequest.environ).match(path_info=path_info, return_rule=True)
File "/home/iHaveAmigraine/odoo/odoo/addons/base/models/ir_http.py", line 279, in routing_map
for url, endpoint, routing in cls._generate_routing_rules(mods, converters=cls._get_converters()):
File "/home/iHaveAmigraine/odoo/odoo/http.py", line 943, in _generate_routing_rules
members = inspect.getmembers(o, inspect.ismethod)
File "/usr/lib/python3.9/inspect.py", line 351, in getmembers
value = getattr(object, key)
File "/home/iHaveAmigraine/odoo/addons/web/controllers/main.py", line 1771, in extension
raise NotImplementedError()
NotImplementedError - - -
0
Avatar
Descartar
Avatar
Maniganda
Mejor respuesta

Hello,

The problem for this is not the assets as we see the error clearly, it indicates that we need to implement a method from the class which is defined in the odoo/addons/web/controllers/main.py

class ExportFormat(object):

Solution : Implement the methods in your custom controller file 

@property
def content_type(self):
@property
def extension(self):






1
Avatar
Descartar
Steven Bouillon
Autor

Thank you for your response. This is correct if anyone sees this in the future. I am partially blind 50% of the time and missed that in the error. Thank you again.

Maniganda

could you upvote it, it will help others

Yagami

@BilllNye how did you implemented extension function? Can you please put me in the direction?

Maniganda

@Yagami
Example

class ExcelExport(http.Controller):

# Excel needs raw data to correctly handle numbers and date values
raw_data = True

@http.route('/export/chart_xls', type='http', auth="user")
@serialize_exception
def index(self, data, token):
return self.base(data, token)

@property
def content_type(self):
return 'application/vnd.ms-excel'

def filename(self, base):
return base + '.xls'

¿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
web.assets_common CSS Resuelto
assets v15
Avatar
Avatar
Avatar
2
sept 24
5475
Fedex Shipping Return Label - can I default it to ground when using overnight for delivery?
enterprise v15
Avatar
0
feb 24
2602
How to add custom field on Enterprise reports
enterprise v15
Avatar
Avatar
1
nov 23
3030
How to copy the value of a checkbox field from Vendor Bill to Payments in Odoo 15?
enterprise v15
Avatar
0
sept 23
2458
Annual leave allocation based on their joining date? Resuelto
enterprise v15
Avatar
Avatar
1
jun 23
4220
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.

Sitio web hecho con

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