From 859a01bd3a3e7d120fba03de48cc7067ffcc2a02 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 13 Feb 2012 17:03:19 +0100 Subject: [PATCH] [FIX] account_followup: fixed error due to virtual ids bzr revid: qdp-launchpad@openerp.com-20120213160319-lpx878gnczz590uz --- addons/account_followup/wizard/account_followup_print.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index 56c017d73f3..1a5f3c0b60b 100644 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -200,11 +200,11 @@ class account_followup_print_all(osv.osv_memory): stat_line_id = partner_id * 10000 + company_id if date_maturity: if date_maturity <= fups[followup_line_id][0].strftime('%Y-%m-%d'): - if partner_id not in partner_list: + if stat_line_id not in partner_list: partner_list.append(stat_line_id) - to_update[str(id)]= {'level': fups[followup_line_id][1], 'partner_id': partner_id} + to_update[str(id)]= {'level': fups[followup_line_id][1], 'partner_id': stat_line_id} elif date and date <= fups[followup_line_id][0].strftime('%Y-%m-%d'): - if partner_id not in partner_list: + if stat_line_id not in partner_list: partner_list.append(stat_line_id) to_update[str(id)]= {'level': fups[followup_line_id][1], 'partner_id': stat_line_id} return {'partner_ids': partner_list, 'to_update': to_update}