Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <data>
- <!--
- Done by RHT on the 03/03/2025
- Need : Only keep the column description
- Task : https://www.odoo.com/odoo/project.task/4603152
- Pastebin : https://pastebin.com/ANvmiAt2
- -->
- <xpath expr="//table[@id='sales_order_table']//tr" position="replace">
- </xpath>
- <xpath expr="//t[@t-foreach='lines_to_report']" position="replace">
- <t t-foreach="lines_to_report" t-as="line" t-if="line.x_studio_visible_for_customer">
- <t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal"/>
- <tr t-att-class="'fw-bold o_line_section' if ( line.display_type == 'line_section' or line.product_type == 'combo' ) else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
- <t name="product_line_row" t-if="not line.display_type and line.product_type != 'combo'">
- <td id="product_name">
- <span t-field="line.name"/>
- </td>
- </t>
- <t t-if="line.display_type == 'line_section' or line.product_type == 'combo'">
- <td colspan="99">
- <span t-field="line.name"/>
- </td>
- <t t-set="current_section" t-value="line"/>
- <t t-set="current_subtotal" t-value="0"/>
- </t>
- <t t-if="line.display_type == 'line_note'">
- <td colspan="99">
- <span t-field="line.name"/>
- </td>
- </t>
- </tr>
- <tr t-if="current_section and ( line_last or lines_to_report[line_index+1].display_type == 'line_section' or lines_to_report[line_index+1].product_type == 'combo' or ( line.combo_item_id and not lines_to_report[line_index+1].combo_item_id ) ) and not line.is_downpayment" class="is-subtotal text-end">
- <t t-set="current_section" t-value="None"/>
- <td colspan="99">
- <strong class="mr16">Subtotal</strong>
- <span t-out="current_subtotal" t-options="{"widget": "monetary", "display_currency": sale_order.currency_id}"/>
- </td>
- </tr>
- </t>
- </xpath>
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement