Merge lp:~alhashash/openobject-addons/7.0-fix-lp-1307523 into lp:openobject-addons/7.0

Proposed by Mohammad Alhashash
Status: Needs review
Proposed branch: lp:~alhashash/openobject-addons/7.0-fix-lp-1307523
Merge into: lp:openobject-addons/7.0
Diff against target: 14 lines (+2/-2)
1 file modified
stock/stock.py (+2/-2)
To merge this branch: bzr merge lp:~alhashash/openobject-addons/7.0-fix-lp-1307523
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+216128@code.launchpad.net

Description of the change

Fix the return value for stock.picking.do_partial when creating back order

To post a comment you must log in.

Unmerged revisions

9990. By Mohammad Alhashash

fix bug lp:1307523 incorrect return value from stock.picking.do_partial()

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 2014-04-15 16:03:31 +0000
+++ stock/stock.py 2014-04-16 15:06:40 +0000
@@ -1368,8 +1368,8 @@
1368 self.action_move(cr, uid, [new_picking], context=context)1368 self.action_move(cr, uid, [new_picking], context=context)
1369 wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_done', cr)1369 wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_done', cr)
1370 wf_service.trg_write(uid, 'stock.picking', pick.id, cr)1370 wf_service.trg_write(uid, 'stock.picking', pick.id, cr)
1371 delivered_pack_id = pick.id1371 delivered_pack_id = new_picking
1372 back_order_name = self.browse(cr, uid, delivered_pack_id, context=context).name1372 back_order_name = self.browse(cr, uid, pick.id, context=context).name
1373 self.message_post(cr, uid, new_picking, body=_("Back order <em>%s</em> has been <b>created</b>.") % (back_order_name), context=context)1373 self.message_post(cr, uid, new_picking, body=_("Back order <em>%s</em> has been <b>created</b>.") % (back_order_name), context=context)
1374 else:1374 else:
1375 self.action_move(cr, uid, [pick.id], context=context)1375 self.action_move(cr, uid, [pick.id], context=context)