Merge lp:~openerp-dev/openobject-addons/7.0-opw-597388-fka into lp:openobject-addons/7.0

Proposed by Foram Katharotiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-597388-fka
Merge into: lp:openobject-addons/7.0
Diff against target: 11 lines (+1/-1)
1 file modified
stock/wizard/stock_return_picking.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-597388-fka
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+190869@code.launchpad.net

Description of the change

Hello,

I have Fix the issue of product Qty. After cancelling move of return product, we can not see entire qty when click again on return product.

steps to reproduce:
1) Create sale order with 15 qty -> confirm and delivered
2) Returned that Delivery order with 10 Qty.
3) Open return picking and click on cancel transfer button.
4) Now goto Delivery order and click on again return product button.
5) It will display 5 qty instead of 15 qty.

Thanks,
FKA

To post a comment you must log in.

Unmerged revisions

9517. By Foram Katharotiya (OpenERP)

[FIX] After cancelling move of return product, we can not see entire qty when click again on return

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/wizard/stock_return_picking.py'
2--- stock/wizard/stock_return_picking.py 2013-09-09 15:25:01 +0000
3+++ stock/wizard/stock_return_picking.py 2013-10-14 06:45:22 +0000
4@@ -131,7 +131,7 @@
5 # a valid return move will be the exact opposite of ours:
6 # (src location, dest location) <=> (dest location, src location))
7 if rec.location_dest_id.id == m.location_id.id \
8- and rec.location_id.id == m.location_dest_id.id:
9+ and rec.location_id.id == m.location_dest_id.id and rec.state != 'cancel':
10 return_history[m.id] += (rec.product_qty * rec.product_uom.factor)
11 return return_history
12