c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #25815
[Bug 779145] Re: stock move - price_unit missing for avg price and not "IN"
Hello Ferdinand,
This bug report/feature request looks a lot like what was discussed in bug 613286, like a partial duplicate.
After discussing with R&D we think it is a valid addition for 6.1, but simply storing the price_unit all the time without using it does not make a lot of sense.
So we'll at least use it in the way it was meant in bug 613286, and propose this historical unit cost price as the suggested price for return pickings on products with average price.
I'll update the description and title to reflect that.
Thanks for suggesting a patch (to be double-checked by R&D)!
** Summary changed:
- stock move - price_unit missing for avg price and not "IN"
+ [stock] store price_unit for all stock moves, and use it for suggesting return picking values
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/779145
Title:
[stock] store price_unit for all stock moves, and use it for
suggesting return picking values
Status in OpenERP Modules (addons):
Incomplete
Bug description:
to be able to calculate the stock value for every point in time for avg price and real time
obviously for accounting purpose real time we must have
account_balance == stock values
and must be able to proove it
if (pick.type != 'in') and (move.product_id.cost_method == 'average'):
if all stock moves have the price_unit field set:
qty * price_unit= move_value
and sum(+/- move_value)
enables to calculated the total stock value per product in every point of time matching the account balance
a little step further will be to calculated the average price per
stock_location and lot
References