Browse Source
Merge pull request #277 from ludogre/7.0_fix_account_export_csv_module_journals_filter_for_trial_balance
[7.0] account_export_csv: fix journals filter for trial balance
7.0
Stefan Rijnhart (Opener)
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
account_export_csv/wizard/account_export_csv.py
|
@ -168,11 +168,13 @@ class AccountCSVExport(orm.TransientModel): |
|
|
from account_move_line as aml,account_account as ac |
|
|
from account_move_line as aml,account_account as ac |
|
|
where aml.account_id = ac.id |
|
|
where aml.account_id = ac.id |
|
|
and period_id in %(period_ids)s |
|
|
and period_id in %(period_ids)s |
|
|
|
|
|
and journal_id in %(journal_ids)s |
|
|
group by ac.id,ac.code,ac.name |
|
|
group by ac.id,ac.code,ac.name |
|
|
order by ac.code |
|
|
order by ac.code |
|
|
""", |
|
|
""", |
|
|
{'fiscalyear_id': fiscalyear_id, |
|
|
{'fiscalyear_id': fiscalyear_id, |
|
|
'period_ids': tuple(period_range_ids)} |
|
|
|
|
|
|
|
|
'period_ids': tuple(period_range_ids), |
|
|
|
|
|
'journal_ids': tuple(journal_ids)} |
|
|
) |
|
|
) |
|
|
res = cr.fetchall() |
|
|
res = cr.fetchall() |
|
|
|
|
|
|
|
|