Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Tracking Maintenance Request

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
maintenance
2 Antwoorden
2361 Weergaven
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
Annuleer
Avatar
Mathesh
Beste antwoord

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
Annuleer
Avatar
Rudi
Auteur Beste antwoord

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
Annuleer
Rudi
Auteur

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.

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How to inherit view from one module to another new module?
maintenance
Avatar
Avatar
Avatar
2
jan. 24
2600
Invisible the create/ delete option
maintenance
Avatar
Avatar
Avatar
2
dec. 23
2555
Invisible the create/ delete option
maintenance
Avatar
Avatar
1
dec. 23
2289
maintenance
maintenance
Avatar
Avatar
1
jun. 23
2524
preventive maintenance in contract
maintenance
Avatar
Avatar
1
jun. 23
5357
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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