invoice report

This commit is contained in:
sonal arora
2020-09-16 00:10:14 +05:30
parent 9ecbdcd489
commit c138def11f
2 changed files with 17 additions and 13 deletions

View File

@@ -104,17 +104,21 @@
<tr> <tr>
<th style="background-color:#3498DB !important;color:#FFF !important;">Description <th style="background-color:#3498DB !important;color:#FFF !important;">Description
</th> </th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Quantity <th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Quantity
</th> </th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Unit Price <th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Unit Price
</th> </th>
<th t-if="display_discount" <th t-if="display_discount" class="text-right"
groups="sale.group_discount_per_so_line" groups="sale.group_discount_per_so_line"
style="background-color:#3498DB !important;color:#FFF !important;">Disc.(%) style="background-color:#3498DB !important;color:#FFF !important;">Disc.(%)
</th> </th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Taxes <th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Taxes
</th> </th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Price <th class="text-right"
style="background-color:#3498DB !important;color:#FFF !important;">Price
</th> </th>
</tr> </tr>
</thead> </thead>
@@ -123,21 +127,21 @@
<td> <td>
<span t-field="l.name"/> <span t-field="l.name"/>
</td> </td>
<td> <td class="text-right">
<span t-field="l.quantity"/> <span t-field="l.quantity"/>
<span t-field="l.uom_id" groups="product.group_uom"/> <span t-field="l.uom_id" groups="product.group_uom"/>
</td> </td>
<td> <td class="text-right">
<span t-field="l.price_unit"/> <span t-field="l.price_unit"/>
</td> </td>
<td t-if="display_discount" <td t-if="display_discount" class="text-right"
groups="sale.group_discount_per_so_line"> groups="sale.group_discount_per_so_line">
<span t-field="l.discount"/> <span t-field="l.discount"/>
</td> </td>
<td> <td>
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_ids))"/> <span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_ids))"/>
</td> </td>
<td> <td class="text-right">
<span t-field="l.price_subtotal" <span t-field="l.price_subtotal"
t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</td> </td>

View File

@@ -54,16 +54,16 @@
<span t-esc="o.note"/> <span t-esc="o.note"/>
</xpath> </xpath>
<xpath expr="//table[@class='table table-sm']/thead/tr/th[1]" position="before"> <xpath expr="//table[@class='table table-sm']/thead/tr/th[1]" position="before">
<th style="background-color:#3498DB !important;color:#FFF">S.No</th> <th class="text-right" style="background-color:#3498DB !important;color:#FFF">S.No</th>
<th style="background-color:#3498DB !important;color:#FFF">Code</th> <th class="text-right" style="background-color:#3498DB !important;color:#FFF">Code</th>
</xpath> </xpath>
<xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before"> <xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before">
<t t-set="seq_move" t-value="1"/> <t t-set="seq_move" t-value="1"/>
<td colspan="2"> <td colspan="2" class="text-right">
<t t-esc="seq_move"></t> <t t-esc="seq_move"></t>
</td> </td>
<t t-set="seq_move" t-value="seq_move+1"/> <t t-set="seq_move" t-value="seq_move+1"/>
<td><span t-esc="l.product_id.default_code"/></td> <td class="text-right"><span t-esc="l.product_id.default_code"/></td>
</xpath> </xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after"> <xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
<p>E &amp; OE</p><br/> <p>E &amp; OE</p><br/>