dépôts
/
burette
/
pos_membership.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only use the date if there is no invoice/order for a membership line.
[burette/pos_membership.git]
/
pos_membership.py
diff --git
a/pos_membership.py
b/pos_membership.py
index
b53eac3
..
e61b697
100644
(file)
--- a/
pos_membership.py
+++ b/
pos_membership.py
@@
-456,6
+456,10
@@
class Partner(osv.osv):
s = 2
elif ostate == 'draft' and s != 0 and s != 1:
s = 3
+ else:
+ # when we don't have an invoice line only use the date to get the state.
+ s = 0
+ break
if s == 4:
for mline in partner_data.member_lines:
if mline.date_from < today and \