[FIX] membership: now membership state not depends on current date
authorgpa <gpa@tinyerp.com>
Thu, 13 May 2010 13:43:54 +0000 (19:13 +0530)
committergpa <gpa@tinyerp.com>
Thu, 13 May 2010 13:43:54 +0000 (19:13 +0530)
bzr revid: gpa@tinyerp.com-20100513134354-rhqs7myy01pm35wk

addons/membership/membership.py

index 4b0384e..d5f00d2 100644 (file)
@@ -253,7 +253,7 @@ class Partner(osv.osv):
             s = 4
             if partner_data.member_lines:
                 for mline in partner_data.member_lines:
-                    if mline.date_from <= today and mline.date_to >= today:
+                    if mline.date_to >= today:
                         if mline.account_invoice_line and mline.account_invoice_line.invoice_id:
                             mstate = mline.account_invoice_line.invoice_id.state
                             if mstate == 'paid':