summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarshad Modi <hmo@tinyerp.com>2008-09-24 17:16:07 +0530
committerHarshad Modi <hmo@tinyerp.com>2008-09-24 17:16:07 +0530
commitae6bcc5ca57d1edb2ec35cb04dbf9d1bdd01c8d7 (patch)
tree0a774f872bae79c6edc9a18a41fa5d454efc9e6a
parent32518af10916aa8242c44fc33328f96ff0ffbc0d (diff)
on account_followup , delay expressed in levels are agains maturity date, not date. If maturity date is null, checked against date.
bzr revid: hmo@tinyerp.com-20080924114607-7jn3bupbyh3743fw
-rw-r--r--addons/account_followup/wizard/wizard_followup_print.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/account_followup/wizard/wizard_followup_print.py b/addons/account_followup/wizard/wizard_followup_print.py
index 545108f578f..a1022881358 100644
--- a/addons/account_followup/wizard/wizard_followup_print.py
+++ b/addons/account_followup/wizard/wizard_followup_print.py
@@ -251,14 +251,17 @@ class followup_all_print(wizard.interface):
partner_list = []
to_update = {}
- for partner_id, followup_line_id, date, id in move_lines:
+ for partner_id, followup_line_id, date_maturity,date, id in move_lines:
if not partner_id:
continue
if partner_id in partner_list:
to_update[str(id)] = fups[followup_line_id][1]
if followup_line_id not in fups:
continue
- if date <= fups[followup_line_id][0].strftime('%Y-%m-%d'):
+ if date_maturity and date_maturity <= fups[followup_line_id][0].strftime('%Y-%m-%d'):
+ partner_list.append(partner_id)
+ to_update[str(id)] = fups[followup_line_id][1]
+ elif date and date <= fups[followup_line_id][0].strftime('%Y-%m-%d'):
partner_list.append(partner_id)
to_update[str(id)] = fups[followup_line_id][1]
return {'partner_ids': partner_list, 'to_update': to_update}