From 07a2e3c768deb6acb3e72bb55e32688d643966eb Mon Sep 17 00:00:00 2001 From: Joel Grand-Guillaume Date: Fri, 22 Nov 2013 08:57:38 +0100 Subject: [PATCH] [FIX] Warranty computation if >24 months --- crm_claim_rma/crm_claim_rma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_claim_rma/crm_claim_rma.py b/crm_claim_rma/crm_claim_rma.py index 9a84456d..13e4cfd1 100644 --- a/crm_claim_rma/crm_claim_rma.py +++ b/crm_claim_rma/crm_claim_rma.py @@ -185,7 +185,7 @@ class claim_line(orm.Model): else: waranty_duration = int(claim_line.product_id.warranty) limit = (date_inv_at_server + - relativedelta(month=waranty_duration)).strftime(DEFAULT_SERVER_DATE_FORMAT) + relativedelta(months=waranty_duration)).strftime(DEFAULT_SERVER_DATE_FORMAT) # If waranty period was defined if waranty_duration > 0: if limit < claim_line.claim_id.date: