From 7dfe8298e4bfec29636febda78d4b55525b9fbdf Mon Sep 17 00:00:00 2001 From: "psi (Open ERP)" Date: Wed, 5 Jan 2011 13:37:52 +0530 Subject: [PATCH] [FIX] account_voucher:sending followups without specifying any email address lp bug: https://launchpad.net/bugs/697207 fixed bzr revid: psi@tinyerp.co.in-20110105080752-6aegezc4y5z53yko --- addons/account_followup/report/account_followup_report.py | 3 +-- addons/account_followup/wizard/account_followup_print.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/account_followup/report/account_followup_report.py b/addons/account_followup/report/account_followup_report.py index 878f44ced30..8d4b914ffa6 100755 --- a/addons/account_followup/report/account_followup_report.py +++ b/addons/account_followup/report/account_followup_report.py @@ -40,7 +40,6 @@ class account_followup_stat(osv.osv): 'company_id': fields.many2one('res.company', 'Company', readonly=True), 'blocked': fields.boolean('Blocked', readonly=True), 'period_id': fields.many2one('account.period', 'Period', readonly=True), - } _order = 'date_move' @@ -69,7 +68,7 @@ class account_followup_stat(osv.osv): cr.execute(""" create or replace view account_followup_stat as ( SELECT - l.id AS id, + l.partner_id as id, l.partner_id AS partner_id, min(l.date) AS date_move, max(l.date) AS date_move_last, diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index 7d296f74f76..922e7358700 100755 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -219,8 +219,8 @@ class account_followup_print_all(osv.osv_memory): partners = [] dict_lines = {} for line in move_lines: - partners.append(line.name) - dict_lines[line.name.id] =line + partners.append(line.partner_id) + dict_lines[line.partner_id.id] =line for partner in partners: ids_lines = move_obj.search(cr,uid,[('partner_id','=',partner.id),('reconcile_id','=',False),('account_id.type','in',['receivable'])]) data_lines = move_obj.browse(cr, uid, ids_lines, context=context)