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

Tracking Maintenance Request

Suscribirse

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

Se marcó esta pregunta
maintenance
2 Respuestas
2333 Vistas
Avatar
Rudi

Hello,

Please bear with me, as I am very new in Odoo. I just installed Odoo for a few days, and the main requirement is to track equipment maintenance. 

I saw that Odoo doesn't track stage change, but we need to time every stage in each request, like how long it was in requested stage, in-progress stage, or on-hold stage, and determine how many hours the equipment downtime. I don't know where to begin. I know python, and I know SQL, and I code in both. The problem is, that I don't know how to hook into odoo, and to track its changes, and how record them into the new table like maintenance_request_stage_log for example. 

Also, can I add something next to equipment log, regarding its maintenance status? Not that important, but I guess it's just a simple filter for maintenance_request_stage_log. 

Thank you


0
Avatar
Descartar
Avatar
Mathesh
Mejor respuesta

Hello,

If you are looking for a solution to track stage changes, you can easily achieve this by setting tracking=True in the field definition. This feature is provided by Odoo and helps automatically track changes made to the field.

Thank you,

1
Avatar
Descartar
Avatar
Rudi
Autor Mejor respuesta

Hello Matesh,


I am sorry, I can't comment on your answer. Not sure why, but nothing happened when I press comment. 

Anyway. tracking is already set as True. And I could see it on the log. By how do I hook into it? Like, subscribe to that particular event, specifically the maintenance request, and export the result to another model, like 'maintenance_request_stage_log'. Or perhaps, put a timer at the chatter message log below the request?

Something like:

Administrator

Yesterday at 16:34

Status changed

  • New RequestRepaired(Stage) : 4h 14m



Engineer

Yesterday at 12:20

Maintenance Request created


Adding that "4h 14m" as the time between 12:20 and 16:34


The view code only include <chatter/> and nothing else.


0
Avatar
Descartar
Rudi
Autor

I had some problem fixing the reply above. It seems the discussion board refuse me to fix the indentation error.

Mathesh

Hello,

To achieve this, you need to post a customized message in the Chatter instead of relying on Odoo's predefined tracking system (e.g., "New stage --> Next Stage"). Here's how you can approach it:

1. When creating the record, ensure that the stage is set to the "Starting Stage" by default.

2. Create a DateTime field to store the time when the record is created. This will be used to calculate the time difference later.

3. Add a button that, when clicked, changes the stage to "Repaired".
Upon clicking the button, record the current time (when the stage changes to "Repaired").

4. Calculate the difference between the time the record was created (stored in the DateTime field) and the time the button was clicked (i.e., when the stage was changed).

5. Finally, use the message_post method to post the calculated time difference in the Chatter, giving a customized message for the stage transition.

¿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
How to inherit view from one module to another new module?
maintenance
Avatar
Avatar
Avatar
2
ene 24
2581
Invisible the create/ delete option
maintenance
Avatar
Avatar
Avatar
2
dic 23
2536
Invisible the create/ delete option
maintenance
Avatar
Avatar
1
dic 23
2270
maintenance
maintenance
Avatar
Avatar
1
jun 23
2513
preventive maintenance in contract
maintenance
Avatar
Avatar
1
jun 23
5350
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