Bugfix followup

bzr revid: fp@tinyerp.com-a312ba1d5a90120ebf2d3de4602cad7c61cb180f
This commit is contained in:
Fabien Pinckaers 2008-02-28 18:20:26 +00:00
parent 513a8bb832
commit e0d182e5b1
1 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class account_followup_stat(osv.osv):
cr.execute("""
create or replace view account_followup_stat as (
select
l.partner_id as id,
min(l.id) as id,
l.partner_id as name,
min(l.date) as date_move,
max(l.date) as date_move_last,
@ -75,7 +75,8 @@ class account_followup_stat(osv.osv):
where
l.reconcile_id is NULL and
a.type in ('receivable', 'payable')
and a.active
and a.active and
l.partner_id is not null
group by
l.partner_id, a.type
)""")