[FIX] account: fixed the query_get method of account.move.line (in cases of initial balance computing with given dates filter)
bzr revid: qdp-launchpad@tinyerp.com-20110107113811-x8wzxdukuzd9sfrl
This commit is contained in:
parent
28ca304453
commit
8045efa512
|
@ -57,7 +57,7 @@ class account_move_line(osv.osv):
|
|||
|
||||
if context.get('date_from', False) and context.get('date_to', False):
|
||||
if initial_bal:
|
||||
where_move_lines_by_date = " OR " +obj+".move_id IN (SELECT id FROM account_move WHERE date < '" +context['date_from']+"')"
|
||||
where_move_lines_by_date = " AND " +obj+".move_id IN (SELECT id FROM account_move WHERE date < '" +context['date_from']+"')"
|
||||
else:
|
||||
where_move_lines_by_date = " AND " +obj+".move_id IN (SELECT id FROM account_move WHERE date >= '" +context['date_from']+"' AND date <= '"+context['date_to']+"')"
|
||||
|
||||
|
|
Loading…
Reference in New Issue