[IMP] add names to tags

add names to facilitate cusotom modifications
This commit is contained in:
Iryna Vyshnevska
2022-05-30 11:22:31 +03:00
parent 34ae5f9a18
commit 4fa05cacfe

View File

@@ -10,12 +10,13 @@
<t t-if="o.state != 'done'"> <t t-if="o.state != 'done'">
<th class="text-right"><strong>Qty Reserved</strong></th> <th class="text-right"><strong>Qty Reserved</strong></th>
</t> </t>
<th class="text-right"><strong>Unit Price</strong></th> <th class="text-right" name="unit_price"><strong>Unit Price</strong></th>
<th class="text-right" groups="product.group_discount_per_so_line"> <th class="text-right" name="discount" groups="product.group_discount_per_so_line">
<strong>Discount</strong> <strong>Discount</strong>
</th> </th>
<th class="text-right"><strong>Subtotal</strong></th> <th class="text-right" name="subtotal" ><strong>Subtotal</strong></th>
<th class="text-right"><strong>Taxes</strong></th> <th class="text-right" name="taxes" ><strong>Taxes</strong></th>
</t>
</t> </t>
</xpath> </xpath>
<xpath <xpath
@@ -53,23 +54,23 @@
position="after" position="after"
> >
<t t-if="o.valued and o.sale_id and o.move_line_ids"> <t t-if="o.valued and o.sale_id and o.move_line_ids">
<table class="table table-sm mt32"> <table class="table table-sm mt32" name="totals">
<thead> <thead>
<tr> <tr>
<th class="text-right"><strong>Untaxed Amount</strong></th> <th class="text-right" name="am_untaxed"><strong>Untaxed Amount</strong></th>
<th class="text-right"><strong>Taxes</strong></th> <th class="text-right" name="taxes" ><strong>Taxes</strong></th>
<th class="text-right"><strong>Total</strong></th> <th class="text-right" name="subtotal" ><strong>Total</strong></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td class="text-right"> <td class="text-right" name="am_untaxed">
<span t-field="o.amount_untaxed" /> <span t-field="o.amount_untaxed" />
</td> </td>
<td class="text-right"> <td class="text-right" name="taxes" >
<span t-field="o.amount_tax" /> <span t-field="o.amount_tax" />
</td> </td>
<td class="text-right"> <td class="text-right" name="subtotal" >
<span t-field="o.amount_total" /> <span t-field="o.amount_total" />
</td> </td>
</tr> </tr>
@@ -90,14 +91,14 @@
<span t-field="move_line.product_uom_qty" /> <span t-field="move_line.product_uom_qty" />
<span t-field="move_line.product_uom_id" /></td> <span t-field="move_line.product_uom_id" /></td>
</t> </t>
<td class="text-right"><span t-field="move_line.sale_price_unit" /></td> <td class="text-right" name="unit_price"><span t-field="move_line.sale_price_unit" /></td>
<td class="text-right" groups="product.group_discount_per_so_line"> <td class="text-right" name="discount" groups="product.group_discount_per_so_line">
<span t-field="move_line.sale_discount" /> <span t-field="move_line.sale_discount" />
</td> </td>
<td class="text-right"><span <td class="text-right" name="subtotal"><span
t-field="move_line.sale_price_subtotal" t-field="move_line.sale_price_subtotal"
/></td> /></td>
<td class="text-right"><span <td class="text-right" name="taxes"><span
t-field="move_line.sale_tax_description" t-field="move_line.sale_tax_description"
/></td> /></td>
</t> </t>