invoice report

This commit is contained in:
sonal arora
2020-09-16 00:48:29 +05:30
parent 15e9adcb2d
commit 45cedbbc35
2 changed files with 10 additions and 3 deletions

View File

@@ -103,6 +103,8 @@
<table class="table table-sm"> <table class="table table-sm">
<thead> <thead>
<tr> <tr>
<th style="background-color:#3498DB !important;color:#FFF">Code
</th>
<th style="background-color:#3498DB !important;color:#FFF !important;">Description <th style="background-color:#3498DB !important;color:#FFF !important;">Description
</th> </th>
<th class="text-right" <th class="text-right"
@@ -124,7 +126,12 @@
</tr> </tr>
</thead> </thead>
<tbody class="invoice_tbody"> <tbody class="invoice_tbody">
<t t-set="seq_move" t-value="1"/>
<tr t-foreach="o.invoice_line_ids" t-as="l"> <tr t-foreach="o.invoice_line_ids" t-as="l">
<td>
<t t-esc="seq_move"></t>
</td>
<t t-set="seq_move" t-value="seq_move+1"/>
<td> <td>
<span t-field="l.name"/> <span t-field="l.name"/>
</td> </td>

View File

@@ -55,14 +55,14 @@
</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 style="background-color:#3498DB !important;color:#FFF">S.No</th>
<th style="background-color:#3498DB !important;color:#FFF">Code</th> <!-- <th 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">
<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><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">