[TMP] Report table of invoices

This commit is contained in:
michel 2018-02-20 14:52:31 +01:00
parent 0228a3535b
commit d2d752992c

View File

@ -52,11 +52,31 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<xpath expr="//table[@id='table_activity_ref']" position="after">
<table class="table table-striped">
<thead><h1>Invoices</h1></thead>
<tr>
<th>Date</th>
<th>Number</th>
<th>Activity</th>
<th>Amount</th>
<th>State</th>
</tr>
<t t-foreach="docs" t-as="o">
<tr t-foreach="o.activity_registration_ids" t-as="l">
<td>
<spam t-field="l.invoice_id.date_invoice" />
</td>
<td>
<spam t-field="l.invoice_id.number" />
</td>
<td>
<spam t-field="l.invoice_line_id.product_id" />
</td>
<td>
<spam t-field="l.invoice_id.amount_total" />
</td>
<td>
<spam t-field="l.invoice_id.state" />
</td>
</tr>
</t>
</table>