Skip to Content
Menú
This question has been flagged
2 Respostes
573 Vistes

How it is right now: 
In Odoo you can enter in an operation the "Default Duration" per piece. The Minimum Value is 1 second



Issue:
When you produce a big quantity for example 9000 pcs. and those take in sum 15 min. It would be 15/9000 = 0,0016... Minutes per piece which wouls be less than a second. Odoo than would round it as a 0


--> 0:00

Question:
How would you solve this? Is it possible without Modifications? Or is there something ready-to-use?

Avatar
Descartar
Best Answer

The widget ("float_time") applied to these fields in list and form view does not support rendering millisecond. Therefore, no, there is no way to change this behavior without modification.

You could remove the widget from these fields if output of a float value representing minutes is sufficient to you:

  • remove widget-attribute (or replace with widget "float") and
  • apply digits-attribute with a precision to your liking, here 6


This can be done in Studio:

You can find (most) possible widgets and options here: https://www.odoo.com/documentation/18.0/applications/studio/fields.html


If this is not to your liking you will have to create your own widget or potentially extend the existing one with something like a displayMilliseconds-option similar to the existing displaySeconds feature, which can not be done in Studio.

Avatar
Descartar
Best Answer

We had the same issue for cable manufacturing.  By standard we define BOM pr 1000 m. Both to be able to set component consumption correct and define duration. To override the Odoo calculation we created an automatic action.  We added two fields to work order using Studio app: Bom operation time and Bom qty.  

Looks like this. Not tested in V18 yet.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’oct. 24
1449
0
de jul. 25
408
1
de jul. 25
798
1
de jul. 25
1224
0
de juny 25
546