summaryrefslogtreecommitdiff
path: root/addons/account/static/src/xml/tax_group.xml
blob: 807fcfc73e4c0a8c82f3cf5f89f41bf29b229f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version='1.0' encoding='utf-8'?>

<templates>
    <t t-name="AccountTaxGroupTemplate">
        <table class="o_group o_inner_group oe_subtotal_footer border-0 my-0" style="min-width: 100%;">
            <tbody>
                <t t-foreach="lines" t-as="line">
                    <tr>
                        <td class="o_td_label oe_tax_group_name">
                            <label class="o_form_label" t-esc="line[0]"/>
                        </td>
                        <td class="oe_tax_group_editable" t-att-data-tax-group-id="line[6]">
                            <t t-if="displayEditWidget and line[1] !== 0">
                                <span class="tax_group_edit">
                                    <i class="fa fa-pencil"></i>
                                    <span class="oe_tax_group_amount_value">
                                        <t t-esc="line[3]"/>
                                    </span>
                                </span>
                                <span class="tax_group_edit_input d-none">
                                    <input type="text" class="o_field_float o_field_number o_input" t-att-data-original-value="line[1]"/>
                                </span>
                            </t>
                            <t t-if="!displayEditWidget or line[1] === 0">
                                <span class="oe_tax_group_amount_value">
                                    <t t-esc="line[3]"/>
                                </span>
                            </t>
                        </td>
                    </tr>
                </t>
            </tbody>
        </table>
    </t>
</templates>