acc_quotation_report_view2.xml
19.7 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="acct_report_quotation">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="o">
<style type="text/css">
.unovo-report-purchase-title {
font-family:"DengXian";
font-size: 25px;
font-weight: bold;
text-align:center;
line-height:40px;
}
.unovo-report-purchase-header {
font-family:"DengXian";
line-height:22px;
font-size:16px;
text-align:right;
}
.unovo-report-purchase-name{
font-family:"DengXian";
font-size: 25px;
font-weight: bold;
line-height:40px;
}
.unovo-report-purchase-table {
vertical-align: middle;
font-family:"DengXian";
border:1px solid #ccc;
width:100%;
border-collapse:collapse;
border:1px solid #ccc;
background:#FFF
}
.unovo-report-purchase-table th{
font-weight:bold;
text-align:left;
height:20px;
font-size:14px;
border:1px solid #ccc;
}
.unovo-report-purchase-table td{
height:20px;
font-size:14px;
border:1px solid #ccc;
background:#FFF;
text-align: left;
}
.unovo-report-purchase-table p {
margin:5px 0px;
}
.unovo-report-purchase-total {
line-height:20px;
font-size:16px;
}
.unovo-report-purchase-content {
font-family:"DengXian";
line-height:22px;
font-size:16px;
}
.unovo-report-purchase-address {
font-size: 14px;margin: 7px 0 35px;
font-family:"DengXian";
font-size:14px;
}
.unovo-report-purchase-content p {
margin:5px 0px;
}
.unovo-report-purchase-footer {
font-family:"DengXian";
line-height:22px;
font-size:16px;
}
.unovo-report-purchase-about{
vertical-align: middle;
font-family:"DengXian";
width:100%;
background:#FFF;
font-size: 14px;
}
.new-page-css{
min-width: 721px;
padding: 0 20px;
}
.title_position{
min-width: 80px;
text-align: left;position: relative;
}
.quotationcss{
max-height: 70px;position: absolute;right: 0;bottom: -15px;font-size: 30px;
}
.unovo-report-purchase-footer .text_right{
width: 100%;text-align: right;
}
.text_linehaight{
padding: 0 5px;line-height: 22px;
}
.font14{
font-size: 14px;
}
.padd5{
padding: 0 5px;
}
.connaction{
display: inline-block;width: 20%;margin-left: 10%;
}
.xcode{
display: inline-block;position: absolute;bottom: -5px;right:40px;
}
.imgCss{
max-height: 110px;width:170px
}
.total-css{
min-width:170px;font-size: 14px;
}
.interested-css{
width: 70%;background:#f8f8f8;border: 1px solid #f2f2f2;text-align:center;padding: 5px 0;
}
.weixinCss{
width: 125px;
padding:10px;
background:#f8f8f8 !important;border: 1px solid #f2f2f2 !important;
}
.text_indent{
text-indent:2em;
}
.code2{
max-height: 104px;width:104px
}
</style>
<div class="page new-page-css">
<!-- <div class="header">
<div class="row">
<div class="col-xs-3">
<span t-field="o.purchase_company.name"/>
</div>
</div>
</div> -->
<div class="" style="position: absolute;">
<!-- <img t-att-src="'data:image/jpg;base64,%s' % o.purchase_company.logo" style="max-height: 45px;"/> -->
<img t-att-src="'data:image/png;base64,%s' % logo" style="max-height: 110px;width:170px"/>
<!-- <img class="imgCss" src="./image001.png"/> -->
</div>
<div class="row unovo-report-purchase-footer" style="padding-top: 50px;">
<div class="col-xs-6 text_right">
<strong style="font-size: 25px;">QUOTATION</strong>
<div>报价单编号:<span t-field="o.name"/></div>
</div>
</div>
<br/>
<div class="unovo-report-purchase-name"><span t-field="o.sale_company.name"/></div>
<div class="unovo-report-purchase-address ">
<div>
<div> <a href="WWW.NEOTEL-TECHNOLOGY.COM">WWW.NEOTEL-TECHNOLOGY.COM</a></div>
<div style="margin-top:5px;">全国免费电话:400-088-1622</div>
<div style="margin-top:25px;">上海:上海市闵行区联航路1588号中心大道西路18号楼 邮编:201112</div>
<div style="margin-top:5px;">苏州:苏州市工业园区归家巷48号1幢101室 邮编:215021</div>
</div>
</div>
<table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
<tr>
<th class="padd5" style="min-width:120px;">
<strong class="font14" >报价日期</strong>
</th>
<th class="padd5" style="min-width:195px;">
<strong class="font14" >公司名称</strong>
</th>
<th class="padd5" style="min-width:70px;">
<strong class="font14" >联系人</strong>
</th>
<th class="padd5" style="min-width:130px;">
<strong class="font14" >电话</strong>
</th>
<th class="padd5" style="min-width:65px;">
<strong class="font14">运输</strong>
</th>
<th class="padd5" style="min-width:65px;">
<strong class="font14">交货期</strong>
</th>
</tr>
<tr>
<td class="text_linehaight">
<span t-field="o.last_date" />
</td>
<td class="text_linehaight">
<span t-field="o.partner_id.name" />
</td>
<td class="text_linehaight">
<span t-esc="o.contact_id.name"/>
</td>
<td class="text_linehaight">
<span t-field="o.contact_id.phone" />
</td>
<td class="text_linehaight">
<span t-field="o.transaction_mode.name"/>
</td>
<td class="text_linehaight">
<span t-field="o.delivery_time"/>
</td>
</tr>
</table>
<div class="unovo-report-purchase-content" style="padding:10px 0;">
<p>
<strong class="font14">报价内容:</strong>
</p>
</div>
<table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
<tr>
<th class="padd5" style="min-width:75px;">
<strong class="font14">产品编码</strong>
</th>
<th class="padd5" style="min-width:95px;">
<strong class="font14">产品名称</strong>
</th>
<th class="padd5" style="min-width:270px;">
<strong class="font14" >产品描述</strong>
</th>
<th class="padd5" style="min-width:30px;">
<strong class="font14" >数量</strong>
</th>
<th class="padd5" style="min-width:30px;">
<strong class="font14" >单位</strong>
</th>
<th class="padd5" style="min-width:70px;">
<strong class="font14">单价</strong>
</th>
<th class="padd5" style="min-width:65px;">
<strong class="font14" >小计</strong>
</th>
</tr>
<tr t-foreach="o.accquotation_line" t-as="line">
<td class="text_linehaight" >
<span t-field="line.product_id.product_tmpl_id.product_model" />
</td>
<td class="text_linehaight" >
<span t-field="line.product_id.product_tmpl_id.name"/>
</td>
<td class="text_linehaight">
<span t-field="line.product_id.product_tmpl_id.product_describe_cn" />
</td>
<td class="text_linehaight">
<span t-field="line.product_qty"/>
</td>
<td class="text_linehaight">
<span t-field="line.product_uom.name"/>
</td>
<td class="text_linehaight">
<span t-field="line.price_unit" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
<!-- <td class="text-center">
<span t-esc="', '.join(map(lambda x: x.name, line.taxes_id))"/>
</td> -->
<td class="text_linehaight">
<!-- <span t-esc="'{:.2f}'.format(round(line.price_unit*line.product_qty,2))" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> -->
<span t-esc="line.price_unit*line.product_qty" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</table>
<br/>
<table cellspacing="3" class="total-css" align="right">
<tr>
<td style="width:50%;">
小计(<span t-field="o.currency_id.name" />):
</td>
<td >
<span t-esc="o.amount_untaxed" style="min-width:80px;" t-options='{"widget": "monetary", "display_currency": o.currency_id}' />
</td>
</tr>
<tr>
<td>
税费(<span t-field="o.currency_id.name"/>):
</td>
<td>
<span t-esc="o.amount_tax" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<tr>
<td>
折扣(<span t-field="o.currency_id.name"/>):
</td>
<td >
<span t-esc="o.discount" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<tr>
<td>
运费(<span t-field="o.currency_id.name"/>):
</td>
<td >
<span t-esc="o.ship_fee" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<tr>
<td>
合计(<span t-field="o.currency_id.name"/>):
</td>
<td>
<!-- <span t-esc="o.amount_total - o.discount_amount - o.ship_fee" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> -->
<span t-esc="o.amount_total" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<tr>
<th>
<p>
</p>
</th>
<td>
<p>
</p>
</td>
</tr>
</table>
<table class="unovo-report-purchase-about" cellspacing="0" cellpadding="0">
<!-- <tr>
<th colspan="3" class="text-center">
<strong>Other Comments or Special Instructions</strong>
</th>
</tr> -->
<tr>
<td style="width: 15%;"></td>
<td class="interested-css">
<div style="text-align:center;line-height: 20px;">以上是您感兴趣的产品资料,希望对您的工作带来方便,您还可以浏览</div>
<div style="text-align:center;line-height: 20px;"><a href="">http://www.neotel-technology.com</a> 获取其他产品信息。</div>
</td>
<td style="width: 15%;"></td>
</tr>
</table>
<br/>
<br/>
<div style="position: relative;">
<div style="width: 45%;display: inline-block;font-size: 14px;">
<table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
<tr>
<td>
<p style="padding-left:5px;">附注:</p>
<p class="text_indent">1、 以上价格为<span t-field="o.note1"/></p>
<p class="text_indent">2、 交货周期为收到预付款后<span t-field="o.delivery_time"/></p>
<p class="text_indent">3、 付款方式:<span t-field="o.transaction_rule"/></p>
<p class="text_indent">4、<span t-field="o.note4"/></p>
</td>
</tr>
</table>
</div>
<div style="display: inline-block;font-size: 14px;position: absolute;right:120px;top: 5px;">
<table style="width: 110px;" class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="" style="background: #f8f8f8;padding: 2px 4px;" >
<p style="font-size: 14px;font-family:'DengXian';line-height: 20px;" class="">如果您对报价单有任何问题,可以直接联系微信客服:</p>
</div>
</td>
</tr>
</table>
</div>
<div style="display: inline-block;font-size: 14px;position: absolute;right: 0;">
<img t-att-src="'data:image/png;base64,%s' % qr_code" class="code2"/>
<!-- <img src="./code.png" class="code2"/> -->
</div>
</div>
<br/>
<br/>
<br/>
<!-- <div class="footer">
<div class="col-xs-6" style="width: 100%;text-align: right;">
<img t-att-src="'data:image/png;base64,%s' % qr_code" style="max-height: 70px;width:70px"/>
</div>
</div> -->
</div>
<div style="page-break-after:always;"></div>
</t>
<t t-foreach="docs" t-as="doc">
<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})"/>
</t>
</t>
</template>
<!-- <template id="unovo_report_purchaseorder">
<t t-call="report.html_container">
<t t-foreach="doc_ids" t-as="doc_id">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'unovo_report.unovo_report_purchaseorder_document')"/>
</t>
</t>
</template> -->
</data>
</odoo>