[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:
qdp-launchpad@tinyerp.com 2011-01-07 12:38:11 +01:00
parent 28ca304453
commit 8045efa512
1 changed files with 1 additions and 1 deletions

View File

@ -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']+"')"