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

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

Description of the change

Hello Sir,

[FIX] stock: if received product qty is larger than the order quantity, qty not updated on stock move.

Steps:
1. Create a PO with Qty 5 and "Confirm Order".
2. Go to "Warehouse/Products Moves/Receive Products" and select the move for the PO and change qty=4, Click on "Process" button.
3. Wizard opens, Now change the qty=5 and press button "Validate". See the qty on move, it is still 4.

Where it should be 5.

This branch fixes this issue. Kindly review the branch and please share your views on it

Thanks,
Somesh Khare

To post a comment you must log in.

Unmerged revisions

7152. By Somesh Khare

[FIX] stock: if received product qty is larger than the order quantity, qty not updated on stock move (Case; ref 586090)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'stock/stock.py'
--- stock/stock.py 2012-10-22 09:29:02 +0000
+++ stock/stock.py 2013-02-13 11:22:27 +0000
@@ -2585,10 +2585,11 @@
25852585
25862586
2587 for move in too_many:2587 for move in too_many:
2588 product_qty = move_product_qty[move.id]
2588 self.write(cr, uid, [move.id],2589 self.write(cr, uid, [move.id],
2589 {2590 {
2590 'product_qty': move.product_qty,2591 'product_qty': product_qty,
2591 'product_uos_qty': move.product_qty,2592 'product_uos_qty': product_qty,
2592 })2593 })
2593 complete.append(move)2594 complete.append(move)
25942595