fix: remove _get_display_grouped_section() call causing 500 error on portal
This commit is contained in:
@@ -325,7 +325,6 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<t t-set="adp_total_cols" t-value="8 - (0 if display_taxes else 1)"/>
|
<t t-set="adp_total_cols" t-value="8 - (0 if display_taxes else 1)"/>
|
||||||
<t t-foreach="lines_to_report" t-as="line">
|
<t t-foreach="lines_to_report" t-as="line">
|
||||||
<t t-if="not line._get_display_grouped_section()">
|
|
||||||
<!-- Section Header -->
|
<!-- Section Header -->
|
||||||
<tr t-if="line.display_type == 'line_section'" name="tr_section" class="bg-200 fw-bold">
|
<tr t-if="line.display_type == 'line_section'" name="tr_section" class="bg-200 fw-bold">
|
||||||
<td t-att-colspan="adp_total_cols" name="td_section_line">
|
<td t-att-colspan="adp_total_cols" name="td_section_line">
|
||||||
@@ -372,33 +371,6 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</t>
|
</t>
|
||||||
<t t-else="">
|
|
||||||
<!-- Grouped Section Display -->
|
|
||||||
<tr t-foreach="line._get_grouped_section_summary(display_taxes)"
|
|
||||||
t-as="section_line"
|
|
||||||
name="tr_section_group"
|
|
||||||
class="bg-200 fw-bold">
|
|
||||||
<td/>
|
|
||||||
<td name="td_section_group_name">
|
|
||||||
<span t-field="line.name"/>
|
|
||||||
</td>
|
|
||||||
<td class="text-end text-nowrap"/>
|
|
||||||
<td class="text-end text-nowrap d-none d-sm-table-cell">
|
|
||||||
<span t-out="section_line['price_subtotal']"
|
|
||||||
t-options="{'widget': 'monetary', 'display_currency': sale_order.currency_id}"/>
|
|
||||||
</td>
|
|
||||||
<td t-if="display_taxes" class="text-end d-none d-md-table-cell">
|
|
||||||
<span t-out="', '.join(section_line['tax_labels'])"/>
|
|
||||||
</td>
|
|
||||||
<td class="text-end adp-col-bg"/>
|
|
||||||
<td class="text-end client-col-bg"/>
|
|
||||||
<td name="td_section_group_total" class="text-end">
|
|
||||||
<span t-out="section_line['price_subtotal']"
|
|
||||||
t-options="{'widget': 'monetary', 'display_currency': sale_order.currency_id}"/>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</t>
|
|
||||||
</t>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user