From ed4c72de1dda42bde0a184ee07463be0eda2a3a4 Mon Sep 17 00:00:00 2001 From: "uco (OpenERP)" Date: Wed, 17 Mar 2010 17:48:11 +0530 Subject: [PATCH] [IMP] stock: Small Improvement in 'Change Price' wizard. bzr revid: uco@tinyerp.co.in-20100317121811-thc1d6mlra9anrzf --- addons/stock/wizard/stock_change_standard_price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_change_standard_price.py b/addons/stock/wizard/stock_change_standard_price.py index 90412c3b388..b4f12e7f545 100644 --- a/addons/stock/wizard/stock_change_standard_price.py +++ b/addons/stock/wizard/stock_change_standard_price.py @@ -87,7 +87,7 @@ class change_standard_price(osv.osv_memory): for lots in lot_obj.browse(cr, uid, lot_ids): qty += lots.name - if stock_input_acc and stock_output_acc: + if stock_input_acc and stock_output_acc and lot_ids: move_id = move_obj.create(cr, uid, {'journal_id': data.categ_id.property_stock_journal.id}) if diff > 0: credit = qty * diff