From 78d49dcabed6d973a335f7bdcace82da6956f1c8 Mon Sep 17 00:00:00 2001 From: "Sanjay Gohel (Open ERP)" Date: Thu, 28 Jun 2012 15:54:12 +0530 Subject: [PATCH] [IMP]if there is there is no line repair oreder is confirm bzr revid: sgo@tinyerp.com-20120628102412-phgjf8lw7rfydxm8 --- addons/mrp_repair/mrp_repair.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index 57b07730007..2992c1d4e7f 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -331,8 +331,6 @@ class mrp_repair(osv.osv): self.write(cr, uid, [o.id], {'state': '2binvoiced'}) else: self.write(cr, uid, [o.id], {'state': 'confirmed'}) - if not o.operations: - raise osv.except_osv(_('Error !'),_('You cannot confirm a repair order which has no line.')) for line in o.operations: if line.product_id.track_production and not line.prodlot_id: raise osv.except_osv(_('Warning'), _("Serial number is required for operation line with product '%s'") % (line.product_id.name))