Merge lp:~openerp-dev/openobject-addons/6.1-opw-579149-skh into lp:openobject-addons/6.1

Proposed by Somesh Khare
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-579149-skh
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
stock/stock.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-579149-skh
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+126650@code.launchpad.net

Description of the change

Hello Sir,

[FIX] stock: Wrong amount in stock journal move in the real time inventory valuation.

Steps to reproduce:
1. Create a UOM of type Unit as 10PCE (1*10)
2. Create a product "test Product" and select Purchase UOM as 10PCE, select Supplier as "Axelor" and Inventory Valuation="Real Time"
3. Create PO and in PO line select the product and give Qty=8 and Unit Price=3.5 also select UOM as 10 PCE.
4. Select Invoicing Control as "On Receprion"
5. Confirm the Order and Process reception.

Open the Menu Accounting > Journal Entries see move have the wrong amount as 280 where it should be 28.

This branch fixes the issue.

Please review the branch and share your views.

Regards,
Somesh Khare

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Not reproducible on Trunk. If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

7006. By Somesh Khare

[FIX] stock: Wrong amount in stock journal move in the real time inventory valuation (Case: 579149)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2012-08-07 10:04:35 +0000
3+++ stock/stock.py 2012-09-27 09:54:20 +0000
4@@ -2158,7 +2158,7 @@
5 # if product is set to average price and a specific value was entered in the picking wizard,
6 # we use it
7 if move.product_id.cost_method == 'average' and move.price_unit:
8- reference_amount = qty * move.price_unit
9+ reference_amount = qty * (move.price_unit * move.product_uom.factor)
10 reference_currency_id = move.price_currency_id.id or reference_currency_id
11
12 # Otherwise we default to the company's valuation price type, considering that the values of the