[IMP]mrp:set proper indentation for if statement

bzr revid: mma@tinyerp.com-20120125051603-qbpnvzg1et68nftf
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-01-25 10:46:03 +05:30
parent 815f27fedf
commit 18fcfecb9a
1 changed files with 2 additions and 2 deletions

View File

@ -330,8 +330,8 @@ 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.'))
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'), _("Production lot is required for opration line with product '%s'") % (line.product_id.name))