[REF] mrp: Removed 'raise..' from 'Change Qty' wizard. Not needed.
bzr revid: uco@tinyerp.co.in-20100318110453-hxn7rr96qo25llg1
This commit is contained in:
parent
365d5cc0e9
commit
50e42ae57e
|
@ -53,12 +53,9 @@ class change_production_qty(osv.osv_memory):
|
|||
return res
|
||||
prod_obj = self.pool.get('mrp.production')
|
||||
prod = prod_obj.browse(cr, uid, record_id)
|
||||
if prod.state in ('in_production','cancel', 'done'):
|
||||
raise osv.except_osv(_('Warning !'), _('The production is in "%s" state. You can not change the production quantity anymore') % (prod.state).upper() )
|
||||
|
||||
res['product_qty'] = prod.product_qty
|
||||
return res
|
||||
|
||||
|
||||
def change_prod_qty(self, cr, uid, ids, context):
|
||||
"""
|
||||
Changes the Quantity of Product.
|
||||
|
|
Loading…
Reference in New Issue