Hi,
we have the requirement to split a move in a defined number of moves
despite of split by quantity (the goal of stock_split module).
The move is splitted in the most similar quantities per each move: it
divides the quantity by the number of moves getting the "floor" value in
division (using the decimals of UoM) and the last move have the extra
decimal to get the total quantity of original move.

We don't need any user interface to do that because it is called as part of
other development.
Now, we have this function in the module that implements that functionality
but I think it could be added in the API of stock.move to don't repeat the
code (which it is not trivial). It should be added in 'stock' module or
'stock_split'.

What do you think?

-- 
Guillem Barba
http://www.guillem.alcarrer.net

Reply via email to