Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Odoo 18 CE – Work Order Expected Duration shows huge value (e.g., 120000:00) instead of correct time

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
manufacturingworkorderworking_centeroperatorsbillofmaterials
1 Rispondi
328 Visualizzazioni
Avatar
Ravi Durga Prasad

Hello Odoo Community 👋,

I’m using Odoo 18 Community Edition, and I’ve found a possible bug in the Manufacturing (MRP) module related to Work Order Expected Duration calculation.

Steps to Reproduce

  1. Create a Work Center
    • Capacity = 1
    • Time Efficiency = 100%
    • Working Hours = Standard 40h/week
  2. Create a BoM
    • Product Qty = 1000
    • Add one Operation → Duration Computation = Set duration manually
    • Duration (minutes) = 60
    • Work Center = the one created above
  3. Create a Manufacturing Order
    • Product Qty = 2000
    • Confirm and check Work Orders tab

Actual Result

  • The Expected Duration field shows a very large number (e.g., 120000:00) instead of the correct 120 minutes (2 hours).

Expected Result

  • Expected Duration should be 2 hours (since BoM = 1000 → 60 min, MO = 2000 → double quantity).

📊 Comparison of All Scenarios (BoM 1000 Qty / Duration 60 min / MO 2000 Qty)

CapacityExpected DurationStatusComment
1120 min (2 h)✅ Correct formulaOne batch per cycle
200060 min (1 h)✅ CorrectParallel batch fits in one cycle
400060 min (1 h)✅ CorrectLess than capacity → one cycle
1 (bug case)120000 h❌ WrongMinutes treated as hours or seconds → overflow

Hypothesis

  • It seems Odoo treats the BoM operation “Duration (minutes)” as hours (or seconds) internally when computing duration_expected.
  • Possibly an issue in addons/mrp/models/mrp_workorder.py under _get_duration_expected or _plan_workorders.

Correct formula should be:

cycles = math.ceil((mo_qty / bom_qty) / max(capacity, 1)) expected_minutes = cycles * duration_minutes duration_expected = expected_minutes / 60.0

Environment

  • Odoo 18.0 CE (fresh DB, no custom MRP changes)
  • Manufacturing module only
  • Tested on Linux + PostgreSQL 15

Request

Could someone from Odoo or the community please confirm whether this is a known bug or a new regression in Odoo 18 CE?

If confirmed, I’d like to raise a GitHub issue or propose a small patch.


0
Avatar
Abbandona
Avatar
Alexander Hesse
Risposta migliore

Hi Ravi,

I encountered the same quite recently and clarified it with Odoo support. It's not a bug but a messed up logic.

The consumption of components in a BOM are relative to the set BOM quantity.

BUT the duration is always based on 1 piece NOT relative to the set BOM quantity.

So, with your setting, Odoo things it takes 60min to produce 1 piece. You want to produce 2.000 pieces, ergo 60 * 2.000 = 120.000min.


This is a big issue, if your duration per piece is so low that you cannot really set it up in 00:00min. Unfortunately, Odoo still does not understand what real mass production means.

The work around we found is already in your scenarios: To "misuse" the capacity setting in case you do not need it for anything else. If you set the Capacity to the same value as the BOM quantity the math is done correctly.

BR
   Alexander

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Update production center in work order based on another field V16
manufacturing workflow many2one workorder working_center
Avatar
0
feb 24
1648
Odoo 17.sh = How can I create and assign a whole group of operators to a Work Order in an MO? Risolto
manufacturing workorder
Avatar
Avatar
1
set 24
2903
V16 Work Order Cancel undo
manufacturing workorder
Avatar
Avatar
1
ago 24
2765
Multiple products on the same work order?
manufacturing workorder
Avatar
Avatar
1
gen 23
3696
Partially finished manufacturing order (using work orders)
manufacturing workorder
Avatar
Avatar
Avatar
3
gen 23
11689
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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