[FIX] membership: Comparing apples and oranges
Comparing apples and oranges: account.invoice.line() == 'paid'
This commit is contained in:
parent
4aa8c20e2a
commit
f6d2a75c94
|
@ -249,7 +249,7 @@ class Partner(osv.osv):
|
|||
s = 3
|
||||
if s==4:
|
||||
for mline in partner_data.member_lines:
|
||||
if mline.date_from < today and mline.date_to < today and mline.date_from <= mline.date_to and (mline.account_invoice_line and mline.account_invoice_line.invoice_id.state) == 'paid':
|
||||
if mline.date_from < today and mline.date_to < today and mline.date_from <= mline.date_to and mline.account_invoice_line and mline.account_invoice_line.invoice_id.state == 'paid':
|
||||
s = 5
|
||||
else:
|
||||
s = 6
|
||||
|
|
Loading…
Reference in New Issue