Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
637 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 24
1546
2
sie 25
439
0
lip 25
472
1
lip 25
894
1
lip 25
1296