Merge lp:~openerp-dev/openobject-addons/trunk-bug-1006494-ssu into lp:openobject-addons

Proposed by Saurang Suthar(OpenERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1006494-ssu
Merge into: lp:openobject-addons
Diff against target: 17 lines (+1/-2)
1 file modified
stock/stock.py (+1/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1006494-ssu
Reviewer Review Type Date Requested Status
Harry (OpenERP) (community) Needs Fixing
Review via email: mp+110030@code.launchpad.net

Description of the change

Hello sir,

I have fixed the issue when the movement is processed of receiving the product, the account journal entry amount is differ from the actual result.

Thank you.
Saurang Suthar

To post a comment you must log in.
Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

it's seem good.

Thanks

review: Approve
Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

oh.. sorry I forgot to check qty variable is used.

need to correct this.

review: Needs Fixing

Unmerged revisions

6894. By Saurang Suthar(OpenERP)

[FIX]stock:fixed the bug

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-05-25 10:26:43 +0000
3+++ stock/stock.py 2012-06-13 10:54:21 +0000
4@@ -2198,12 +2198,11 @@
5 reference_currency_id = move.company_id.currency_id.id
6
7 default_uom = move.product_id.uom_id.id
8- qty = product_uom_obj._compute_qty(cr, uid, move.product_uom.id, move.product_qty, default_uom)
9
10 # if product is set to average price and a specific value was entered in the picking wizard,
11 # we use it
12 if move.product_id.cost_method == 'average' and move.price_unit:
13- reference_amount = qty * move.price_unit
14+ reference_amount = move.product_qty * move.price_unit
15 reference_currency_id = move.price_currency_id.id or reference_currency_id
16
17 # Otherwise we default to the company's valuation price type, considering that the values of the

Subscribers

People subscribed via source and target branches

to all changes: