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 balance7.0
commit
75c3a804d4
|
@ -168,11 +168,13 @@ class AccountCSVExport(orm.TransientModel):
|
|||
from account_move_line as aml,account_account as ac
|
||||
where aml.account_id = ac.id
|
||||
and period_id in %(period_ids)s
|
||||
and journal_id in %(journal_ids)s
|
||||
group by ac.id,ac.code,ac.name
|
||||
order by ac.code
|
||||
""",
|
||||
{'fiscalyear_id': fiscalyear_id,
|
||||
'period_ids': tuple(period_range_ids)}
|
||||
'period_ids': tuple(period_range_ids),
|
||||
'journal_ids': tuple(journal_ids)}
|
||||
)
|
||||
res = cr.fetchall()
|
||||
|
||||
|
|
Loading…
Reference in New Issue