Skip to content

Commit

Permalink
[IMP] purchase: add names to columns and divs for better inheritance
Browse files Browse the repository at this point in the history
Closes #37814
  • Loading branch information
chienandalu authored and mart-e committed Jan 22, 2020
1 parent 23a59bc commit 9a370d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions addons/purchase/report/purchase_order_templates.xml
Expand Up @@ -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>
Expand All @@ -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">
Expand Down Expand Up @@ -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}'/>
Expand Down
6 changes: 3 additions & 3 deletions addons/purchase/report/purchase_quotation_templates.xml
Expand Up @@ -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>
Expand Down

0 comments on commit 9a370d3

Please sign in to comment.