[FIX] membership: now membership state not depends on current date
bzr revid: gpa@tinyerp.com-20100513134354-rhqs7myy01pm35wk
This commit is contained in:
parent
59e3a48a9c
commit
caf2746c04
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue