From eec9c4aac58174ecf1afca1edd71a511b97ea5cc Mon Sep 17 00:00:00 2001 From: david <david.vidal@tecnativa.com> Date: Wed, 2 Oct 2019 16:04:20 +0000 Subject: [PATCH] [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> --- .../report/purchase_order_templates.xml | 20 +++++++++---------- .../report/purchase_quotation_templates.xml | 6 +++--- 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 4a473309480d..8ca91d26ddcd 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 536a7c50f77f..958de3e159c2 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> -- GitLab