Format correct for sale order report

This commit is contained in:
sonal arora
2020-09-15 19:19:06 +00:00
parent 62fead3ca8
commit 053918fe1a
2 changed files with 13 additions and 13 deletions

View File

@@ -78,7 +78,7 @@
</div>
</div>
</div>
<div style="padding-top:20px;">
<div class="row mt32 mb32">
<div class="col-3" style="font:15px lucida-console,sans-serif !important;">
<strong>Customer Address</strong>
<br/>
@@ -94,7 +94,7 @@
<br/>
<span style="color:gray !important;" t-field="o.partner_id.vat"/>
<br/>
</div>
</div></div>
<div style="padding-top:20px;"></div>
<!-- Is there a discount on at least one line? -->
<t t-set="display_discount" t-value="any([l.discount for l in o.invoice_line_ids])"/>
@@ -104,20 +104,20 @@
<tr>
<th style="background-color:#3498DB !important;color:#FFF !important;">Description
</th>
<th class="text-right"
<th
style="background-color:#3498DB !important;color:#FFF !important;">Quantity
</th>
<th class="text-right"
<th
style="background-color:#3498DB !important;color:#FFF !important;">Unit Price
</th>
<th t-if="display_discount" class="text-right"
<th t-if="display_discount"
groups="sale.group_discount_per_so_line"
style="background-color:#3498DB !important;color:#FFF !important;">Disc.(%)
</th>
<th class="text-right"
<th
style="background-color:#3498DB !important;color:#FFF !important;">Taxes
</th>
<th class="text-right"
<th
style="background-color:#3498DB !important;color:#FFF !important;">Price
</th>
</tr>
@@ -127,28 +127,28 @@
<td>
<span t-field="l.name"/>
</td>
<td class="text-right">
<td>
<span t-field="l.quantity"/>
<span t-field="l.uom_id" groups="product.group_uom"/>
</td>
<td class="text-right">
<td>
<span t-field="l.price_unit"/>
</td>
<td t-if="display_discount" class="text-right"
<td t-if="display_discount"
groups="sale.group_discount_per_so_line">
<span t-field="l.discount"/>
</td>
<td>
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_ids))"/>
</td>
<td class="text-right">
<td>
<span t-field="l.price_subtotal"
t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<div class="col-4 pull-right">

View File

@@ -59,7 +59,7 @@
</xpath>
<xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before">
<t t-set="seq_move" t-value="1"/>
<td colspan="2">
<td>
<t t-esc="seq_move"></t>
</td>
<t t-set="seq_move" t-value="seq_move+1"/>