[FIX] stock : Error when selecting internal for shipping type, following fields are invalid: 'Source Location' and 'Destination Location'.

bzr revid: mdi@tinyerp.com-20120926114217-70avgduo0px5x2yj
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-09-26 17:12:17 +05:30
parent 00629a4040
commit 58723b04ad
+3
View File
@@ -1950,6 +1950,9 @@ class stock_move(osv.osv):
elif type == 'out':
location_source_id = 'stock_location_stock'
location_dest_id = 'stock_location_customers'
elif type == 'internal':
location_source_id = 'stock_location_stock'
location_dest_id = 'stock_location_stock'
if location_source_id:
try:
location_model, location_source_id = mod_obj.get_object_reference(cr, uid, 'stock', location_source_id)