← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~ajite/product-kitting/7-0-product-kitting-fix-0001 into lp:product-kitting

 

Augustin Cisterne-Kaas - www.elico-corp.com has proposed merging lp:~ajite/product-kitting/7-0-product-kitting-fix-0001 into lp:product-kitting.

Requested reviews:
  Product Core Editors (product-core-editors)

For more details, see:
https://code.launchpad.net/~ajite/product-kitting/7-0-product-kitting-fix-0001/+merge/209636

Fixed a bug that was preventing the confirmation of all purchase orders.
-- 
https://code.launchpad.net/~ajite/product-kitting/7-0-product-kitting-fix-0001/+merge/209636
Your team Product Core Editors is requested to review the proposed merge of lp:~ajite/product-kitting/7-0-product-kitting-fix-0001 into lp:product-kitting.
=== modified file 'purchase_bom_split/purchase.py'
--- purchase_bom_split/purchase.py	2012-07-24 12:27:35 +0000
+++ purchase_bom_split/purchase.py	2014-03-06 10:40:24 +0000
@@ -116,7 +116,7 @@
                     move_id = move_obj.create(cr, uid, vals, context=context)
                     new_move_ids.append(move_id)
             if move_dest_id:
-                line.move_dest_id.write({'location_id': move_dest_id})
+                line.move_dest_id.write({'location_id': move_dest_id.location_id.id})
 
         move_obj.action_confirm(cr, uid, new_move_ids)
         move_obj.force_assign(cr, uid, new_move_ids)


Follow ups