<?xml version="1.0"?>
<t t-name="account_reports.pdf_export_main_table_body">
        <t t-foreach="lines" t-as="line">
            <t t-set="o_line_level" t-value="'o_line_level_' + str(line['level'])"/>

            <t t-if="line.get('page_break') and not options.get('horizontal_split')">
                <!-- End current table -->
                <t t-out="table_end"/>

                <!-- Append table header -->
                <t t-call="{{custom_templates.get('pdf_export_main_table_header', 'account_reports.pdf_export_main_table_header')}}"/>

                <!-- Start new table -->
                <t t-out="table_start"/>
            </t>

            <!-- Adds an empty row above line with level 0 to add some spacing (it is the easiest and cleanest way) -->
            <t t-if="line_index != 0 and line['level'] == 0">
                <tr>
                    <td/>

                    <t t-foreach="line.get('columns')" t-as="cell">
                        <td/>
                    </t>

                    <t t-if="options.get('column_percent_comparison')">
                        <td/>
                    </t>

                    <t t-if="options.get('show_horizontal_group_total')">
                        <td/>
                    </t>
                </tr>
            </t>

            <t t-set="o_bold" t-value="(' o_fw_bold' if line.get('unfolded') or 'total' in line.get('id') else '')"/>
            <t t-set="o_overflow" t-value="(' o_overflow_name' if len(line.get('name') or '') &gt; 42 else '')"/>

            <tr t-att-class="o_line_level + o_bold + o_overflow" name="pdf_export_main_table_body_lines_tr">
                <td t-att-colspan="line.get('colspan', '1')" class="o_line_name_level">
                    <t t-out="line.get('name')"/>
                    <t t-if="line.get('annotations')">
                        <t t-foreach="annotations" t-as="annotation">
                            <t t-if="annotation.get('number') and annotation['number'] in (line.get('annotations') or [])">
                                <sup t-out="annotation['number']"/>
                            </t>
                        </t>
                    </t>
                </td>

                <t t-foreach="line.get('columns')" t-as="cell">
                    <td class="o_cell_td">
                        <t t-if="not env.company.totals_below_sections or options.get('ignore_totals_below_sections') or not line.get('unfolded')">
                            <t t-call="{{custom_templates.get('pdf_export_cell', 'account_reports.pdf_export_cell')}}"/>
                        </t>
                    </td>
                </t>

                <t t-if="options.get('column_percent_comparison')">
                    <td class="o_column_percent_comparison">
                        <t t-if="line.get('column_percent_comparison_data')">
                            <t t-out="line['column_percent_comparison_data'].get('name')"/>
                        </t>
                    </td>
                </t>

                <t t-if="options.get('show_horizontal_group_total')">
                    <td class="o_cell_td">
                        <t t-if="line.get('horizontal_group_total_data')">
                            <t t-set="o_classes" t-value="'o_line_cell_value_number' + (' o_muted' if line['horizontal_group_total_data'].get('no_format') == 0 else '')"/>
                            <span t-att-class="o_classes" t-out="line['horizontal_group_total_data'].get('name')"/>
                        </t>
                    </td>
                </t>
            </tr>
        </t>
    </t>

    