Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Odoo14: increment time precision for BoM operations

by
Francesco Ballerini
- 14/04/2025 20:54:56
Hi Jacob

I found a similar but slightly better solution by extending this nice module https://apps.odoo.com/apps/modules/14.0/crnd_web_float_full_time_widget which provide an enhanced float_time widget and allows to set milliseconds on it.. then inherited a couple of views, so the datas on GUI can be filled / presented in milliseconds.. we're waiting for the customer validation, didn't find a better solution yet, but this might be enough I hope. 

I appreciate your help, regards

--
Francesco



Il giorno lun 14 apr 2025 alle ore 18:52 Jacob Christ <notifications@odoo-community.org> ha scritto:
I don't know how this is used downstream in Odoo but could you just assume that the field is in millisecond and just dividing any totals by 1000 later on?  Manual and yucky but it might be helpful until a better solution presents itself.

Jacob Christ
+1 (714) 269-7256 Cell

On Mon, Apr 14, 2025, 2:39 AM Francesco Ballerini <notifications@odoo-community.org> wrote:
Hi, 

We have a customer who needs a better precision for the "Duration" field of the BoM operations. 

By default this field is handled with a precision of 1.0 seconds, so if you produce a single unit in, for example, 1.44 seconds, the overall production time cannot be properly estimated as you can only round by 1 second or 2 seconds.

Do you have any recommendations on how to effectively handle this scenario?

Thanks

--Francesco Ballerini

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference