summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid <david.vidal@tecnativa.com>2019-10-02 16:04:20 +0000
committerMartin Trigaux <mat@odoo.com>2020-01-22 12:21:36 +0000
commiteec9c4aac58174ecf1afca1edd71a511b97ea5cc (patch)
tree2928741f59a68136bce0a4c0b302b4278f845f1c
parent9fe8dc50cd3b0e0e28adc28632dde1b4564fa18d (diff)
[IMP] purchase: add names to columns and divs for better inheritance
Closes odoo/odoo#37814 closes odoo/odoo#43751 X-original-commit: 47f2534ddbdc717644673d6f68576ca027b0374a Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
-rw-r--r--addons/purchase/report/purchase_order_templates.xml20
-rw-r--r--addons/purchase/report/purchase_quotation_templates.xml6
2 files changed, 13 insertions, 13 deletions
diff --git a/addons/purchase/report/purchase_order_templates.xml b/addons/purchase/report/purchase_order_templates.xml
index 4a473309480..8ca91d26ddc 100644
--- a/addons/purchase/report/purchase_order_templates.xml
+++ b/addons/purchase/report/purchase_order_templates.xml
@@ -44,12 +44,12 @@
<table class="table table-sm o_main_table">
<thead>
<tr>
- <th><strong>Description</strong></th>
- <th><strong>Taxes</strong></th>
- <th class="text-center"><strong>Date Req.</strong></th>
- <th class="text-right"><strong>Qty</strong></th>
- <th class="text-right"><strong>Unit Price</strong></th>
- <th class="text-right"><strong>Amount</strong></th>
+ <th name="th_description"><strong>Description</strong></th>
+ <th name="th_taxes"><strong>Taxes</strong></th>
+ <th name="th_date_req" class="text-center"><strong>Date Req.</strong></th>
+ <th name="th_quantity" class="text-right"><strong>Qty</strong></th>
+ <th name="th_price_unit" class="text-right"><strong>Unit Price</strong></th>
+ <th name="th_amount" class="text-right"><strong>Amount</strong></th>
</tr>
</thead>
<tbody>
@@ -63,7 +63,7 @@
<td id="product">
<span t-field="line.name"/>
</td>
- <td>
+ <td name="td_taxes">
<span t-esc="', '.join(map(lambda x: x.name, line.taxes_id))"/>
</td>
<td class="text-center">
@@ -113,21 +113,21 @@
<div class="col-4">
<table class="table table-sm">
<tr class="border-black">
- <td><strong>Subtotal</strong></td>
+ <td name="td_subtotal_label"><strong>Subtotal</strong></td>
<td class="text-right">
<span t-field="o.amount_untaxed"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<tr>
- <td>Taxes</td>
+ <td name="td_taxes_label">Taxes</td>
<td class="text-right">
<span t-field="o.amount_tax"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<tr class="border-black o_total">
- <td><strong>Total</strong></td>
+ <td name="td_amount_total_label"><strong>Total</strong></td>
<td class="text-right">
<span t-field="o.amount_total"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
diff --git a/addons/purchase/report/purchase_quotation_templates.xml b/addons/purchase/report/purchase_quotation_templates.xml
index 536a7c50f77..958de3e159c 100644
--- a/addons/purchase/report/purchase_quotation_templates.xml
+++ b/addons/purchase/report/purchase_quotation_templates.xml
@@ -23,9 +23,9 @@
<table class="table table-sm">
<thead>
<tr>
- <th><strong>Description</strong></th>
- <th class="text-center"><strong>Expected Date</strong></th>
- <th class="text-right"><strong>Qty</strong></th>
+ <th name="th_description"><strong>Description</strong></th>
+ <th name="th_expected_date" class="text-center"><strong>Expected Date</strong></th>
+ <th name="th_quantity" class="text-right"><strong>Qty</strong></th>
</tr>
</thead>
<tbody>