Format correct for sale order report

This commit is contained in:
sonal arora
2020-09-15 10:30:21 +00:00
parent d7efde8bb3
commit d7547fdb42

View File

@@ -115,7 +115,7 @@
</div> </div>
<div class="col-2"> <div class="col-2">
</div> </div>
<div class="col-5 text-right"> <div class="col-5">
<strong>Shipping Address</strong><br/> <strong>Shipping Address</strong><br/>
<span t-field="o.partner_shipping_id" /> <span t-field="o.partner_shipping_id" />
<br/> <br/>
@@ -141,11 +141,11 @@
<thead> <thead>
<tr> <tr>
<th style="background-color:#3498DB !important;color:#FFF !important;">Description</th> <th style="background-color:#3498DB !important;color:#FFF !important;">Description</th>
<th class="text-right" style="background-color:#3498DB !important;color:#FFF !important;">Quantity</th> <th style="background-color:#3498DB !important;color:#FFF !important;">Quantity</th>
<th class="text-right" style="background-color:#3498DB !important;color:#FFF !important;">Unit Price</th> <th style="background-color:#3498DB !important;color:#FFF !important;">Unit Price</th>
<th t-if="display_discount" class="text-right" groups="sale.group_discount_per_so_line" style="background-color:#3498DB !important;color:#FFF !important;">Disc.(%)</th> <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" style="background-color:#3498DB !important;color:#FFF !important;">Taxes</th> <th style="background-color:#3498DB !important;color:#FFF !important;">Taxes</th>
<th class="text-right" style="background-color:#3498DB !important;color:#FFF !important;">Price</th> <th style="background-color:#3498DB !important;color:#FFF !important;">Price</th>
</tr> </tr>
</thead> </thead>
<tbody class="sale_tbody"> <tbody class="sale_tbody">
@@ -154,20 +154,20 @@
<td> <td>
<span t-field="l.name" /> <span t-field="l.name" />
</td> </td>
<td class="text-right"> <td>
<span t-field="l.product_uom_qty" /> <span t-field="l.product_uom_qty" />
<span groups="product.group_uom" t-field="l.product_uom" /> <span groups="product.group_uom" t-field="l.product_uom" />
</td> </td>
<td class="text-right"> <td>
<span t-field="l.price_unit" /> <span t-field="l.price_unit" />
</td> </td>
<td t-if="display_discount" class="text-right" groups="sale.group_discount_per_so_line"> <td t-if="display_discount" class="text-right" groups="sale.group_discount_per_so_line">
<span t-field="l.discount" /> <span t-field="l.discount" />
</td> </td>
<td class="text-right"> <td>
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_id))" /> <span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_id))" />
</td> </td>
<td class="text-right"> <td>
<span t-field="l.price_subtotal" t-field-options='{"widget": "monetary", "display_currency": "doc.pricelist_id.currency_id"}' /> <span t-field="l.price_subtotal" t-field-options='{"widget": "monetary", "display_currency": "doc.pricelist_id.currency_id"}' />
</td> </td>
</tr> </tr>