diff options
| author | qdp-launchpad@tinyerp.com <> | 2011-01-10 12:44:00 +0100 |
|---|---|---|
| committer | qdp-launchpad@tinyerp.com <> | 2011-01-10 12:44:00 +0100 |
| commit | 45fcc2b1ba4f091c6279a4929bc53112e577a45c (patch) | |
| tree | fba32bb0351fbe19b3b95ac859deafd1e6b238ed | |
| parent | 186713ef9d3d56663a71c198e48a7dc52a504b95 (diff) | |
[FIX] account: fixed the query_get of account.move.line
bzr revid: qdp-launchpad@tinyerp.com-20110110114400-dnbowby75l9rlr7k
| -rw-r--r-- | addons/account/account_move_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 24ae867e68a..9010fc3594d 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -78,7 +78,7 @@ class account_move_line(osv.osv): context['periods'] = fiscalperiod_obj.build_ctx_periods(cr, uid, context['period_from'], context['period_to']) if context.get('periods', False): if initial_bal: - query = obj+".state <> 'draft' AND "+obj+".period_id IN (SELECT id FROM account_period WHERE fiscalyear_id IN (%s) %s %s)" % (fiscalyear_clause, where_move_state, where_move_lines_by_date) + query = obj+".state <> 'draft' AND "+obj+".period_id IN (SELECT id FROM account_period WHERE fiscalyear_id IN (%s)) %s %s" % (fiscalyear_clause, where_move_state, where_move_lines_by_date) period_ids = fiscalperiod_obj.search(cr, uid, [('id', 'in', context['periods'])], order='date_start', limit=1) if period_ids and period_ids[0]: first_period = fiscalperiod_obj.browse(cr, uid, period_ids[0], context=context) |
