[IMP] stock: Small Improvement in 'Change Price' wizard.

bzr revid: uco@tinyerp.co.in-20100317121811-thc1d6mlra9anrzf
This commit is contained in:
uco (OpenERP) 2010-03-17 17:48:11 +05:30
parent 10aa53bf33
commit ed4c72de1d
1 changed files with 1 additions and 1 deletions

View File

@ -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