[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
This commit is contained in:
parent
57a98878b7
commit
7dfe8298e4
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue