[IMP] stock: Small Improvement in 'Change Price' wizard.
bzr revid: uco@tinyerp.co.in-20100317121811-thc1d6mlra9anrzf
This commit is contained in:
parent
10aa53bf33
commit
ed4c72de1d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue