[IMP] Remove error messages

bzr revid: jco@openerp.com-20130528075223-jofigc1voh9cuunj
This commit is contained in:
Josse Colpaert 2013-05-28 09:52:23 +02:00
parent 32c8a20f26
commit d8692c37ca
2 changed files with 1 additions and 5 deletions

View File

@ -2726,7 +2726,7 @@ class stock_move(osv.osv):
self.write(cr, uid, move.id, {'price_unit': price_amount / amount}, context=context)
product_obj.write(cr, uid, product.id, {'standard_price': price_amount / product_uom_qty}, context=ctx)
else:
raise osv.except_osv(_('Error'), "You should tell me " + str(tuples) + str(self.search(cr, uid, [('company_id','=', company_id), ('qty_remaining', '>', 0), ('state', '=', 'done'),
raise osv.except_osv(_('Error'), "Something went wrong finding stock moves " + str(tuples) + str(self.search(cr, uid, [('company_id','=', company_id), ('qty_remaining', '>', 0), ('state', '=', 'done'),
('location_id.usage', '!=', 'internal'), ('location_dest_id.usage', '=', 'internal'), ('product_id', '=', product.id)],
order = 'date', context=context)) + str(product_qty) + str(product_uom) + str(move.company_id.currency_id.id))
else:

View File

@ -119,10 +119,6 @@ class product_product (osv.osv):
else:
tuples.append((move.id, qty_to_go, new_price, qty_from * qty_to_go / product_qty),)
break
if tuples == [] and move_in_ids != []:
raise osv.except_osv(_('Error'), 'Not possible that there are no tuples when move ins')
else:
raise osv.except_osv('Warning', str(move_in_ids) + str(tuples) + str(qty) + " " + str(qty_to_go))
return tuples
class stock_move(osv.osv):