Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion addons/account/models/res_currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def _create_currency_table(self, companies, date_periods, use_cta_rates=False):
domestic_currency_companies = companies.filtered(lambda x: x.currency_id == main_company.currency_id)
other_companies = companies - domestic_currency_companies

table_builders = [self._get_table_builder_domestic_currency(domestic_currency_companies, use_cta_rates)]
table_builders = []
if domestic_currency_companies:
table_builders += [self._get_table_builder_domestic_currency(domestic_currency_companies, use_cta_rates)]

last_date_to = None
for period_key, date_from, date_to in date_periods:
Expand Down