choose
when test="data.get('model_context') == 'account.consolidation.income_statement.context'"
Income Statement
if test="ctx.from_date or ctx.to_date"
From Date: format_date(ctx.from_date, user.language) if ctx.from_date else '' To format_date(ctx.to_date, user.language) if ctx.to_date else ''
/if
/when
when test="data.get('model_context') == 'account.consolidation.balance_sheet.context'"
Balance Sheet
Date: format_date(ctx.date, user.language) if ctx.date else ''
/when
otherwise
Statement
/otherwise
/choose
for each="consolidation, path in consolidations"
choose <when test="len(path) <= 1"> consolidation.name /when when test="len(path) == 2" for each="_ in range(len(path) -1)" /forconsolidation.name /when otherwise for each="_ in range(len(path) -1)" /forconsolidation.name /otherwise /choose	format_currency(consolidation.amount, user.language, consolidation.currency) if consolidation.currency else ''
/for
Companies: ', '.join(c.rec_name for c in companies)	Statement	Print Date: format_date(datetime.date.today(), user.language) at datetime.datetime.now().strftime('%H:%M:%S')
User: user.rec_name	2/2