-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo_view.xml
33 lines (30 loc) · 1.59 KB
/
demo_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="i2t_report_move_document" inherit_id="account.report_invoice_document">
<xpath expr="//p[@name='comment']" position="before">
<p>Argentina 4 - Bolivia 0</p>
</xpath>
<xpath expr="//p[@name='comment']" position="after">
<h3 style="text-decoration: underline;">Argentina 4 - Bolivia 0</h3>
</xpath>
<xpath expr="//div[@id='informations']/div[@name='due_date']/strong" position="replace">
<strong>Vencimiento Santafesino</strong>
</xpath>
<xpath expr="//table[@name='invoice_line_table']/thead/tr/th[@name='th_subtotal']" position="after">
<th>Cuenta Contable</th>
</xpath>
<xpath expr="//td[@class='text-right o_price_total']" position="after">
<div t-if="line.account_id">
<td>
<span t-field="line.account_id.display_name"></span>
</td>
</div>
</xpath>
<xpath expr="//p[@t-if='o.narration']" position="after">
<p>Esta es otra linea mas usando t-if en el xpath</p>
</xpath>
<xpath expr="//div[@class='page']/h2/span[6]" position="after">
<span t-if="o.move_type == 'in_invoice'">Super Factura Proveedor</span>
</xpath>
</template>
</odoo>