Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Convert quantity from an UoM to another one
by
Pierre Verkest
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 ?
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 ?
--
Follow-Ups
-
-
Re: Convert quantity from an UoM to another one
byTecnativa. S. L., Pedro M. Baeza