[MERGE] lp:777803
bzr revid: qdp-launchpad@openerp.com-20110530163158-0tnmt1b96omcjbft
This commit is contained in:
@@ -85,6 +85,8 @@ class stock_change_product_qty(osv.osv_memory):
|
||||
|
||||
res_original = prod_obj_pool.browse(cr, uid, rec_id, context=context)
|
||||
for data in self.browse(cr, uid, ids, context=context):
|
||||
if data.new_quantity < 0:
|
||||
raise osv.except_osv(_('Warning!'), _('Quantity cannot be negative.'))
|
||||
inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: %s') % tools.ustr(res_original.name)}, context=context)
|
||||
line_data ={
|
||||
'inventory_id' : inventory_id,
|
||||
|
||||
Reference in New Issue
Block a user