Merge lp:~openerp-dev/openobject-addons/trunk-bug-fix-stock-return-rpa into lp:openobject-addons

Proposed by Rucha (Open ERP)
Status: Merged
Merged at revision: 4578
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-fix-stock-return-rpa
Merge into: lp:openobject-addons
Diff against target: 19 lines (+4/-4)
1 file modified
stock/wizard/stock_return_picking.py (+4/-4)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-fix-stock-return-rpa
Reviewer Review Type Date Requested Status
OpenERP buildbot (community) Disapprove
qdp (OpenERP) Pending
Review via email: mp+53962@code.launchpad.net

Description of the change

Fixed return picking wizard

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

product/test/product_report.yml: 'int' object is unsubscriptable
account/test/account_fiscalyear_close_state.yml: 'int' object is unsubscriptable
project/test/test_project_delegation.yml: 'int' object is unsubscriptable
project_long_term/test/test_schedule_phases_case1.yml: 'int' object is unsubscriptable
account_invoice_layout/test/account_invoice_layout_report.yml: 'int' object is unsubscriptable

review: Disapprove

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 2011-03-15 10:51:06 +0000
3+++ stock/wizard/stock_return_picking.py 2011-03-18 09:22:25 +0000
4@@ -163,11 +163,11 @@
5
6 val_id = data['product_return_moves']
7 for v in val_id:
8- data_get = data_obj.read(cr, uid, v)
9- mov_id = data_get['move_id']
10- new_qty = data_get['quantity']
11+ data_get = data_obj.browse(cr, uid, v, context=context)
12+ mov_id = data_get.move_id.id
13+ new_qty = data_get.quantity
14 move = move_obj.browse(cr, uid, mov_id, context=context)
15- new_location=move.location_dest_id.id
16+ new_location = move.location_dest_id.id
17 returned_qty = move.product_qty
18 for rec in move.move_history_ids2:
19 returned_qty -= rec.product_qty

Subscribers

People subscribed via source and target branches

to all changes: