From 66f40b52c811c15992fb6b25d5d9641e10260a8f Mon Sep 17 00:00:00 2001 From: Romain Deheele Date: Fri, 16 May 2014 14:28:51 +0200 Subject: [PATCH] [UPD] commit nits --- crm_claim_rma/crm_claim_rma.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crm_claim_rma/crm_claim_rma.py b/crm_claim_rma/crm_claim_rma.py index c11c9e21..1878d39e 100644 --- a/crm_claim_rma/crm_claim_rma.py +++ b/crm_claim_rma/crm_claim_rma.py @@ -255,10 +255,9 @@ class claim_line(orm.Model): return True def auto_set_warranty(self, cr, uid, ids, context): - """ For each line, if the user has not himself pressed - on 'calculate warranty state', it sets warranty""" - if context is None: - context = {} + """ Set warranty automatically + if the user has not himself pressed on 'Calculate warranty state' + button, it sets warranty for him""" for line in self.browse(cr, uid, ids, context=context): if not line.warning: self.set_warranty(cr, uid, [line.id], context=context)