c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23373
[Bug 740964] Re: Stock Input/Output Accounts doesn't work well
To patch you just need to recompute qty and multiply so I imagine just
insert
qty = product_uom_obj._compute_qty(cr, uid, move.product_uom.id, move.product_qty, default_uom)
and change line
reference_amount, reference_currency_id = move.purchase_line_id.price_unit, move.picking_id.purchase_id.pricelist_id.currency_id.id to
reference_amount, reference_currency_id = move.purchase_line_id.price_unit * qty, move.picking_id.purchase_id.pricelist_id.currency_id.id
--
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/740964
Title:
Stock Input/Output Accounts doesn't work well
Status in OpenERP Modules (addons):
Confirmed
Bug description:
OpenERP v6.1, spanish account localization installed on a common stock
profile. Video Example attached.
1) I correctly define in product information the Stock Input/Output Accounts
2) I also define in the product category the information of the Stock Variation Account
3) I made a purchase order of:
Product A: 5 units x 63,28 € = 316,4 €
Pruduct B: 1 unitx x 1 € = 1 €
4) Listing the movements from the stock journal, it's not multiplying
the units and the price, and instead of that it's just accounting the
price of a single unit.
Best regards.
References