dépôts
/
burette
/
pos_membership.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1cea24
)
Only use the date if there is no invoice/order for a membership line.
author
Sébastien Grignard
<seb@amakaze.org>
Fri, 10 Jan 2014 22:13:04 +0000
(23:13 +0100)
committer
Sébastien Grignard
<seb@amakaze.org>
Fri, 10 Jan 2014 22:13:04 +0000
(23:13 +0100)
pos_membership.py
patch
|
blob
|
history
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 \