не выполняет группировку данных при составлении отчета - PullRequest
0 голосов
/ 28 февраля 2020

У меня проблема с печатью отчета при группировании в древовидном представлении, поскольку он разделяет их, и они должны быть все вместе, потому что они сгруппированы. Знаете ли вы, как сделать так, чтобы все в отчете объединялось, а не разделялось?

                        <h2 style = "text-align: center"> Ledger </h2>
                        <h3> Account
                            <span t-esc = "i.title_account" />
                        </h3>
                        <table class = "table">
                            <tr>
                                <th style = "text-align: center"> Date </th>
                                <th style = "text-align: center"> Corporate name </th>
                                <th style = "text-align: center"> Debit </th>
                                <th style = "text-align: center"> credit </th>
                                </tr>

                                <t t-foreach = "i.account_id" t-as = "or">
                                <tr>
                                    <td>
                                        <span t-esc = "o.date" />
                                    </td>
                                    <td>
                                        <span t-esc = "i.company_id.name" />
                                    </td>
                                    <td>
                                        <span t-esc = "i.total_debit" />
                                    </td>
                                    <td>
                                        <span t-esc = "i.total_credit" />
                                    </td>
                                </tr>

                            </t>
                            <tfoot>
                                <tr> <th colspan = "2" style = "text-align: center"> Total </th>
                                    <th style = "text-align: center"> <span t-esc = "i [0] .suma_total_debit" /> </th>
                                    <th style = "text-align: center"> <span t-esc = "i [0] .suma_total_credit" /> </th> </tr>
                                <tr> <th colspan = "2" style = "text-align: center"> Balance </th>
                                    <th colspan = "2" style = "text-align: center"> <span t-esc = "i [0].balance" /> </th> </tr>
                            </tfoot>

group tree report

...