[FIX] stock: correct destination location for order point + autovalidate chained moves for procurements

bzr revid: odo@openerp.com-20101011191613-aw9753wodzb57wq2
This commit is contained in:
Olivier Dony
2010-10-11 21:16:13 +02:00
parent aa27e8aae4
commit 9e5a2d4e27
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -331,6 +331,7 @@ class procurement_order(osv.osv):
'date_expected': procurement.date_planned,
'state': 'draft',
'company_id': procurement.company_id.id,
'auto_validate': True,
})
move_obj.action_confirm(cr, uid, [id], context=context)
self.write(cr, uid, [procurement.id], {'move_id': id, 'close_move': 1})
+1 -1
View File
@@ -241,7 +241,7 @@ class procurement_order(osv.osv):
'product_id': op.product_id.id,
'product_qty': qty,
'product_uom': op.product_uom.id,
'location_id': op.warehouse_id.lot_input_id.id,
'location_id': op.location_id.id,
'procure_method': 'make_to_order',
'origin': op.name
})