Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Convert quantity from an UoM to another one

by
Pierre Verkest
- 24/02/2021 15:57:12
I'd like to propose a new module in product-attribute repo to convert from an UoM to another one, I would suggest "base_uom_converter" or "uom_converter".

This conversion would work in oneway as it requires a scale to use it.

For instance, as a developer, I'm generating sales orders from business code. I know that the sale is regarding a given distance of something "D", the work force can be translated from a scale where distance "D" would be the scale entry. The expected result "R" would be the amount of time with a given formula:
R (hours) = scale line fix amount (hours)  + D (meter) * scale line coef ( hours / meter).

I guess this could be hooked to the existing system while we change the uom on a sale order line but this is not the intent of this module from my point of view, that's why I suggest base_uom_converter !

Does this exist already ? Does the OCA want to maintain such a module ?
--
Pierre Verkest
06 81 12 25 20
Github: petrus-v - Twitter: petrusv84 - Linkedin: pierre-verkest

Follow-Ups