Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Tracking Maintenance Request

Subscriure's

Get notified when there's activity on this post

This question has been flagged
maintenance
2 Respostes
2320 Vistes
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
Best Answer

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 Best Answer

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.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
How to inherit view from one module to another new module?
maintenance
Avatar
Avatar
Avatar
2
de gen. 24
2568
Invisible the create/ delete option
maintenance
Avatar
Avatar
Avatar
2
de des. 23
2522
Invisible the create/ delete option
maintenance
Avatar
Avatar
1
de des. 23
2260
maintenance
maintenance
Avatar
Avatar
1
de juny 23
2505
preventive maintenance in contract
maintenance
Avatar
Avatar
1
de juny 23
5341
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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