2
<document filename="Invoices.pdf">
3
<template allowSplitting="20" author="OpenERP S.A.(sales@openerp.com)" title="Invoices">
4
<pageTemplate id="first">
5
<frame height="786" id="first" width="530" x1="34.0" y1="28.0" />
6
<pageGraphics><image height="29.7cm" x="0cm" y="0.0cm">[[ o.report_background_id.image and o.report_background_id.image or removeParentNode('image') ]]</image></pageGraphics></pageTemplate>
9
<blockTableStyle id="Standard_Outline">
10
<blockAlignment value="LEFT" />
11
<blockValign value="TOP" />
13
<blockTableStyle id="Table_Partner_Address">
14
<blockAlignment value="LEFT" />
15
<blockValign value="TOP" />
17
<blockTableStyle id="Table_Invoice_General_Header">
18
<blockAlignment value="LEFT" />
19
<blockValign value="TOP" />
20
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="0,0" stop="0,-1" />
21
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="0,0" stop="0,0" />
22
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="0,-1" stop="0,-1" />
23
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="1,0" stop="1,-1" />
24
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="1,0" stop="1,0" />
25
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="1,-1" stop="1,-1" />
26
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="2,0" stop="2,-1" />
27
<lineStyle colorName="#e6e6e6" kind="LINEAFTER" start="2,0" stop="2,-1" />
28
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="2,0" stop="2,0" />
29
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="2,-1" stop="2,-1" />
30
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="3,0" stop="3,-1" />
31
<lineStyle colorName="#e6e6e6" kind="LINEAFTER" start="3,0" stop="3,-1" />
32
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="3,0" stop="3,0" />
33
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="3,-1" stop="3,-1" />
35
<blockTableStyle id="Table_General_Detail_Content">
36
<blockAlignment value="LEFT" />
37
<blockValign value="TOP" />
38
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="0,0" stop="0,-1" />
39
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="0,0" stop="0,0" />
40
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="0,-1" stop="0,-1" />
41
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="1,0" stop="1,-1" />
42
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="1,0" stop="1,0" />
43
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="1,-1" stop="1,-1" />
44
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="2,0" stop="2,-1" />
45
<lineStyle colorName="#e6e6e6" kind="LINEAFTER" start="2,0" stop="2,-1" />
46
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="2,0" stop="2,0" />
47
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="2,-1" stop="2,-1" />
48
<lineStyle colorName="#e6e6e6" kind="LINEBEFORE" start="3,0" stop="3,-1" />
49
<lineStyle colorName="#e6e6e6" kind="LINEAFTER" start="3,0" stop="3,-1" />
50
<lineStyle colorName="#e6e6e6" kind="LINEABOVE" start="3,0" stop="3,0" />
51
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="3,-1" stop="3,-1" />
53
<blockTableStyle id="Table7">
54
<blockAlignment value="LEFT" />
55
<blockValign value="TOP" />
56
<lineStyle colorName="#000000" kind="LINEBELOW" start="0,-1" stop="0,-1" />
57
<lineStyle colorName="#000000" kind="LINEBELOW" start="1,-1" stop="1,-1" />
58
<lineStyle colorName="#000000" kind="LINEBELOW" start="2,-1" stop="2,-1" />
59
<lineStyle colorName="#000000" kind="LINEBELOW" start="3,-1" stop="3,-1" />
60
<lineStyle colorName="#000000" kind="LINEBELOW" start="4,-1" stop="4,-1" />
61
<lineStyle colorName="#000000" kind="LINEBELOW" start="5,-1" stop="5,-1" />
63
<blockTableStyle id="Table8">
64
<blockAlignment value="LEFT" />
65
<blockValign value="TOP" />
66
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="0,-1" stop="0,-1" />
67
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="1,-1" stop="1,-1" />
68
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="2,-1" stop="2,-1" />
69
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="3,-1" stop="3,-1" />
70
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="4,-1" stop="4,-1" />
71
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="5,-1" stop="5,-1" />
73
<blockTableStyle id="Table10">
74
<blockAlignment value="LEFT" />
75
<blockValign value="TOP" />
76
<lineStyle colorName="#000000" kind="LINEABOVE" start="1,0" stop="1,0" />
77
<lineStyle colorName="#000000" kind="LINEABOVE" start="2,0" stop="2,0" />
78
<lineStyle colorName="#000000" kind="LINEABOVE" start="1,2" stop="1,2" />
79
<lineStyle colorName="#000000" kind="LINEABOVE" start="2,2" stop="2,2" />
81
<blockTableStyle id="Table9">
82
<blockAlignment value="LEFT" />
83
<blockValign value="TOP" />
84
<lineStyle colorName="#000000" kind="LINEBELOW" start="0,-1" stop="0,-1" />
85
<lineStyle colorName="#000000" kind="LINEBELOW" start="1,-1" stop="1,-1" />
86
<lineStyle colorName="#000000" kind="LINEBELOW" start="2,-1" stop="2,-1" />
88
<blockTableStyle id="Table2">
89
<blockAlignment value="LEFT" />
90
<blockValign value="TOP" />
91
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="0,-1" stop="0,-1" />
92
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="1,-1" stop="1,-1" />
93
<lineStyle colorName="#e6e6e6" kind="LINEBELOW" start="2,-1" stop="2,-1" />
95
<blockTableStyle id="Table1">
96
<blockAlignment value="LEFT" />
97
<blockValign value="TOP" />
100
<paraStyle alignment="justify" name="all" />
102
<paraStyle fontName="Helvetica" name="Standard" />
103
<paraStyle fontName="Helvetica" name="Text body" spaceAfter="6.0" spaceBefore="0.0" />
104
<paraStyle fontName="Helvetica" name="List" spaceAfter="6.0" spaceBefore="0.0" />
105
<paraStyle fontName="Helvetica" name="Table Contents" spaceAfter="6.0" spaceBefore="0.0" />
106
<paraStyle alignment="CENTER" fontName="Helvetica" name="Table Heading" spaceAfter="6.0" spaceBefore="0.0" />
107
<paraStyle fontName="Helvetica" fontSize="10.0" leading="13" name="Caption" spaceAfter="6.0" spaceBefore="6.0" />
108
<paraStyle fontName="Helvetica" name="Index" />
109
<paraStyle fontName="Helvetica" fontSize="15.0" leading="19" name="Heading" spaceAfter="6.0" spaceBefore="12.0" />
110
<paraStyle alignment="LEFT" fontName="Helvetica-Bold" fontSize="12.0" leading="15" name="terp_header" spaceAfter="6.0" spaceBefore="12.0" />
111
<paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0" leading="10" leftIndent="0.0" name="terp_default_8" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
112
<paraStyle fontName="Helvetica" name="Footer" />
113
<paraStyle fontName="Helvetica" fontSize="6.0" leading="8" name="Horizontal Line" spaceAfter="14.0" spaceBefore="0.0" />
114
<paraStyle fontName="Helvetica-Bold" fontSize="75%" leading="NaN" name="Heading 9" spaceAfter="6.0" spaceBefore="12.0" />
115
<paraStyle alignment="LEFT" fontName="Helvetica-Bold" fontSize="8.0" leading="10" name="terp_tblheader_General" spaceAfter="6.0" spaceBefore="6.0" />
116
<paraStyle alignment="LEFT" fontName="Helvetica-Bold" fontSize="9.0" leading="11" name="terp_tblheader_Details" spaceAfter="6.0" spaceBefore="6.0" />
117
<paraStyle alignment="LEFT" fontName="Helvetica-Bold" fontSize="8.0" leading="10" leftIndent="0.0" name="terp_default_Bold_8" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
118
<paraStyle alignment="CENTER" fontName="Helvetica-Bold" fontSize="8.0" leading="10" name="terp_tblheader_General_Centre" spaceAfter="6.0" spaceBefore="6.0" />
119
<paraStyle alignment="RIGHT" fontName="Helvetica-Bold" fontSize="8.0" leading="10" name="terp_tblheader_General_Right" spaceAfter="6.0" spaceBefore="6.0" />
120
<paraStyle alignment="CENTER" fontName="Helvetica-Bold" fontSize="9.0" leading="11" name="terp_tblheader_Details_Centre" spaceAfter="6.0" spaceBefore="6.0" />
121
<paraStyle alignment="RIGHT" fontName="Helvetica-Bold" fontSize="9.0" leading="11" name="terp_tblheader_Details_Right" spaceAfter="6.0" spaceBefore="6.0" />
122
<paraStyle alignment="RIGHT" fontName="Helvetica" fontSize="8.0" leading="10" leftIndent="0.0" name="terp_default_Right_8" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
123
<paraStyle alignment="CENTER" fontName="Helvetica" fontSize="8.0" leading="10" leftIndent="0.0" name="terp_default_Centre_8" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
124
<paraStyle alignment="LEFT" fontName="Helvetica-Bold" fontSize="15.0" leading="19" name="terp_header_Right" spaceAfter="6.0" spaceBefore="12.0" />
125
<paraStyle alignment="CENTER" fontName="Helvetica-Bold" fontSize="12.0" leading="15" name="terp_header_Centre" spaceAfter="6.0" spaceBefore="12.0" />
126
<paraStyle alignment="LEFT" fontName="Helvetica" fontSize="10.0" leading="13" leftIndent="0.0" name="terp_default_address" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
127
<paraStyle alignment="LEFT" fontName="Helvetica" fontSize="9.0" leading="11" leftIndent="0.0" name="terp_default_9" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
128
<paraStyle alignment="LEFT" fontName="Helvetica-Bold" fontSize="9.0" leading="11" leftIndent="-3.0" name="terp_default_Bold_9" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
129
<paraStyle alignment="CENTER" fontName="Helvetica" fontSize="9.0" leading="11" leftIndent="0.0" name="terp_default_Centre_9" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
130
<paraStyle alignment="RIGHT" fontName="Helvetica" fontSize="9.0" leading="11" leftIndent="0.0" name="terp_default_Right_9" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
131
<paraStyle alignment="RIGHT" fontName="Helvetica-Bold" fontSize="9.0" leading="11" leftIndent="-3.0" name="terp_default_Bold_Right_9" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
132
<paraStyle alignment="LEFT" fontName="Helvetica" fontSize="2.0" leading="3" leftIndent="0.0" name="terp_default_2" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
133
<paraStyle alignment="LEFT" fontName="Helvetica" fontSize="2.0" leading="3" leftIndent="0.0" name="terp_default_White_2" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" textColor="#ffffff" />
134
<paraStyle alignment="LEFT" fontName="Helvetica-Oblique" fontSize="8.0" leading="10" leftIndent="9.0" name="terp_default_Note" rightIndent="0.0" spaceAfter="0.0" spaceBefore="0.0" />
135
<paraStyle fontName="Helvetica" fontSize="10.0" leading="13" name="Table" spaceAfter="6.0" spaceBefore="6.0" />
136
<paraStyle fontName="Helvetica" leftIndent="127.0" name="User Index 10" rightIndent="0.0" />
137
<paraStyle fontName="Helvetica" fontSize="10.0" leading="13" name="Preformatted Text" spaceAfter="0.0" spaceBefore="0.0" />
142
<para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
143
<para style="terp_default_8">[[ setLang(o.partner_id.lang) ]]</para>
145
<blockTable colWidths="202.0,87.0,71.0,57.0,42.0,71.0" style="Table7">
147
<td> <para style="terp_tblheader_Details">Description</para> </td>
148
<td> <para style="terp_tblheader_Details_Centre">Taxes</para> </td>
149
<td> <para style="terp_tblheader_Details_Centre">Quantity</para> </td>
150
<td> <para style="terp_tblheader_Details_Right">Unit Price </para> </td>
151
<td> <para style="terp_tblheader_Details_Right">Disc.(%)</para> </td>
152
<td> <para style="terp_tblheader_Details_Right">Price</para> </td>
156
<blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
159
<para style="terp_default_8">
160
<font color="white"> </font>
164
<para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
165
<para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
166
<para style="terp_default_8">
167
<font color="white"> </font>
169
<para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
170
<para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
171
<para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
175
<para style="terp_header">Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]]</para>
176
<para style="terp_header">PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma2') or removeParentNode('para')) and '' ]]</para>
177
<para style="terp_header">Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]]</para>
178
<para style="terp_header">Cancelled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] [[ o.number ]]</para>
179
<para style="terp_header">Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</para>
180
<para style="terp_header">Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</para>
181
<para style="terp_header">Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]]</para>
182
<para style="terp_default_8">
183
<font color="white"> </font>
185
<blockTable colWidths="132.50,132.50,132.50,132.50" style="Table_Invoice_General_Header">
188
<para style="terp_tblheader_General_Centre">Description</para>
191
<para style="terp_tblheader_General_Centre">Invoice Date</para>
194
<para style="terp_tblheader_General_Centre">Origin</para>
197
<para style="terp_tblheader_General_Centre">Customer Code</para>
201
<blockTable colWidths="132.50,132.50,132.50,132.50" style="Table_General_Detail_Content">
204
<para style="terp_default_Centre_9">[[ o.name or ' ' ]]</para>
207
<para style="terp_default_Centre_9">[[ formatLang(o.date_invoice,date=True) ]]</para>
210
<para style="terp_default_Centre_9">[[ o.origin or '' ]]</para>
213
<para style="terp_default_Centre_9">[[ (o.address_invoice_id and o.address_invoice_id.partner_id and o.address_invoice_id.partner_id.ref) or ' ' ]]</para>
217
<para style="terp_default_8">
218
<font color="white"> </font>
220
<blockTable colWidths="185.0,70.0,80.0,60.0,50.0,85.0" style="Table7">
223
<para style="terp_tblheader_General">Description</para>
226
<para style="terp_tblheader_General_Centre">Taxes</para>
229
<para style="terp_tblheader_General_Right">Quantity</para>
232
<para style="terp_tblheader_General_Right">Unit Price</para>
235
<para style="terp_tblheader_General_Right">Disc.(%)</para>
238
<para style="terp_tblheader_General_Right">Price</para>
243
<para style="terp_default_2">[[ repeatIn(o.invoice_line,'l') ]]</para>
244
<blockTable colWidths="185.0,70.0,80.0,60.0,50.0,85.0" style="Table8">
247
<para style="terp_default_9">[[ l.name ]]</para>
250
<para style="terp_default_Centre_9">[[ ', '.join([ lt.name or '' for lt in l.invoice_line_tax_id ]) ]]</para>
253
<para style="terp_default_Right_9">[[ formatLang(l.quantity)]] [[ (l.uos_id and l.uos_id.name) or '' ]]</para>
256
<para style="terp_default_Right_9">[[ formatLang(l.price_unit) ]]</para>
259
<para style="terp_default_Centre_9">[[ formatLang(l.discount, dp='Account') ]] </para>
262
<para style="terp_default_Right_9">[[ formatLang(l.price_subtotal, dp='Account', currency_obj=o.currency_id) ]]</para>
267
<para style="terp_default_Note">[[ format(l.note or '') or removeParentNode('tr') ]]</para>
270
<para style="terp_default_9">
271
<font color="white"> </font>
275
<para style="terp_default_Right_9">
276
<font color="white"> </font>
280
<para style="terp_default_Right_9">
281
<font color="white"> </font>
285
<para style="terp_default_Right_9">
286
<font color="white"> </font>
290
<para style="terp_default_Right_9">
291
<font color="white"> </font>
297
<blockTable colWidths="385.0,60.0,85.0" style="Table10">
300
<para style="terp_default_8">
301
<font color="white"> </font>
305
<para style="terp_default_9">Net Total:</para>
308
<para style="terp_default_Right_9">[[ formatLang(o.amount_untaxed, digits=get_digits(dp='Account'), currency_obj=o.currency_id) ]]</para>
313
<para style="terp_default_8">
314
<font color="white"> </font>
318
<para style="terp_default_9">Taxes:</para>
321
<para style="terp_default_Right_9">[[ formatLang(o.amount_tax, dp='Account', currency_obj=o.currency_id) ]]</para>
326
<para style="terp_default_8">
327
<font color="white"> </font>
331
<para style="terp_tblheader_Details">Total:</para>
334
<para style="terp_default_Bold_Right_9">[[ formatLang(o.amount_total, digits=get_digits(dp='Account'), currency_obj=o.currency_id) ]]</para>
338
<para style="Text body">
339
<font color="white"> </font>
341
<blockTable colWidths="205.0,71.0,71.0,183.0" style="Table9">
344
<para style="terp_tblheader_Details">Tax [[ o.tax_line==[] and removeParentNode('blockTable') ]]</para>
347
<para style="terp_tblheader_Details_Right">Base </para>
350
<para style="terp_tblheader_Details_Right">Amount </para>
353
<para style="terp_default_8">
354
<font color="white"> </font>
360
<para style="terp_default_2">[[ repeatIn(o.tax_line,'t') ]]</para>
361
<blockTable colWidths="205.0,71.0,71.0,184.0" style="Table2">
364
<para style="terp_default_8">[[ t.name ]]</para>
367
<para style="terp_default_Right_8">[[ formatLang(t.base, dp='Account', currency_obj=o.currency_id) ]]</para>
370
<para style="terp_default_Right_8">[[ (t.tax_code_id and t.tax_code_id.notprintable) and removeParentNode('blockTable') or '' ]] [[ formatLang(t.amount, digits=get_digits(dp='Account'), currency_obj=o.currency_id) ]]</para>
373
<para style="terp_default_8">
374
<font color="white"> </font>
380
<para style="terp_default_9">
381
<font color="white"> </font>
383
<para style="terp_default_9">[[ (o.comment and format(o.comment )) or removeParentNode('para') ]]</para>
384
<para style="terp_default_8">
385
<font color="white"> </font>
387
<para style="terp_default_9">[[ (o.payment_term and o.payment_term.note and format(o.payment_term and o.payment_term.note)) or removeParentNode('para') ]]</para>
388
<para style="terp_default_9">
389
<font color="white"> </font>
391
<blockTable colWidths="120.0,410.0" style="Table1">
394
<para style="terp_default_Bold_9">Fiscal Position Remark : </para>
397
<para style="terp_default_9">[[ (o.fiscal_position and o.fiscal_position.note and format(o.fiscal_position.note)) or removeParentNode('blockTable') ]]</para>
401
<para style="terp_default_2">
402
<font color="white"> </font>
b'\\ No newline at end of file'