acc_contract_report_view.xml
16.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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="acct_report_contract">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="o">
<style tyle="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-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:center;
height:20px;
font-size:16px;
border:1px solid #ccc;
}
.unovo-report-purchase-table td{
height:20px;
font-size:16px;
border:1px solid #ccc;
background:#FFF
text-align: center;
}
.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-content p {
margin:5px 0px;
}
.unovo-report-purchase-footer {
font-family:"DengXian";
line-height:22px;
font-size:16px;
}
.unovo-report-purchase-footer p {
margin:5px 0px;
}
.unovo-report-purchase-table p {
margin:5px 0px;
}
</style>
<div class="page">
<div class="row unovo-report-purchase-title">
<div class="col-xs-6" style="width: 50%;text-align: left;">
<!-- <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"/>
</div>
</div>
<br/>
<div class="unovo-report-purchase-title">合同 CONTRACT</div>
<br/>
<!-- <div style="width:100%;"> -->
<div style="width:30%;float:right;">
<table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4" class="text-center">
Contract No.<span t-field="o.name"/>
</td>
</tr>
<tr>
<td colspan="4" class="text-center">
Date:<span t-esc="total.get('today', '')"/>
</td>
</tr>
</table>
</div>
<br/>
<br/>
<br/>
<!-- <div style="clear:both;float:left; width:50%"> -->
<div class="row unovo-report-purchase-footer" style="clear: both">
<div class="col-xs-6" style="width: 50%;text-align: left;">
<strong>买方:</strong><br/>
<!-- <span t-field="o.purchase_company.name"/> -->
<span t-field="o.partner_id.name"/>
</div>
<div class="col-xs-6">
<strong>卖方:</strong><br/>
<!-- <span t-field="o.partner_id.name"/> -->
<span t-field="o.sale_company.name"/>
</div>
</div>
<!-- </div> -->
<!-- <div style="float:right; width:50%"> -->
<div class="row unovo-report-purchase-footer">
<div class="col-xs-6" style="width: 50%;text-align: left;">
<strong>联系人:</strong>
<span t-field="o.contact_id.name"/>
<p><span t-field="o.partner_id.street"/></p>
<p>Tel:<span t-field="o.contact_id.mobile"/> <span t-field="o.partner_id.phone"/></p>
<p>Fax:<span t-field="o.contact_id.phone"/></p>
</div>
<div class="col-xs-6">
<strong>联系人:</strong>
<span t-field="o.user_id.name"/>
<p>上海市闵行区浦江工业区联航路1588号中心大道西路18号</p>
<!-- <p>18号</p> -->
<p>Tel:86-21-62208085 86-21-62208090</p>
<p>Fax:86-21-51026636</p>
</div>
</div>
<!-- </div> -->
<br/>
<div class="unovo-report-purchase-content">
<p>
<p>1.本合同由买卖双方签订,其中买方同意按照本合同规定的条款购买,卖方同意按照本合同规定的条款出售本合同中所规定的货物</p>
</p>
<p>
<p>2.商品及技术特性:</p>
</p>
</div>
<br/>
<br/>
<table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
<tr>
<th class="text-center" style="width:15%;">
<strong>产品编码</strong>
</th>
<th class="text-center" style="width:15%;">
<strong>产品名称</strong>
</th>
<th class="text-center" style="width:35%;">
<strong>产品描述</strong>
</th>
<th class="text-center" style="width:10%;">
<strong>数量</strong>
</th>
<th class="text-center" style="width:10%;">
<strong>单位</strong>
</th>
<th class="text-center" style="width:10%;">
<strong>单价(<span t-field="o.pricelist_id.currency_id.name"/>)</strong>
</th>
<th class="text-center" style="width:5%;">
<strong>小计(<span t-field="o.pricelist_id.currency_id.name"/>)</strong>
</th>
</tr>
<tr t-foreach="o.quotation_line" t-as="line">
<td class="text-center">
<span t-field="line.product_id.product_tmpl_id.product_model"/>
</td>
<td class="text-center">
<span t-field="line.product_id.product_tmpl_id.name"/>
</td>
<td style="text-align:left;">
<span t-field="line.product_id.product_tmpl_id.product_describe_cn"/>
</td>
<td class="text-center">
<span t-field="line.product_qty"/>
</td>
<td class="text-center">
<span t-field="line.product_uom.name"/>
</td>
<td class="text-center">
<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-center">
<!-- <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>
<table cellspacing="3" style="width:20%;" align="right">
<tr>
<th>
税金(<span t-field="o.pricelist_id.currency_id.name"/>)
</th>
<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_tax" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<tr>
<th>
合计(<span t-field="o.pricelist_id.currency_id.name"/>)
</th>
<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.quo_amount_total" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
<!-- <tr>
<th>
<p>
</p>
</th>
<td>
<p>
</p>
</td>
</tr> -->
</table>
<br/>
<br/>
<div class="unovo-report-purchase-content">
<p>
3.合同费用:
<p>(1)合同总价【<span t-esc="o.quo_amount_total" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>】元,本合同合计金额大写:人民币<span t-esc="total.get('upper_amount', '')"/>(此价格含<span t-field="o.tax_id.amount"/>%增值税,<span t-field="o.note"/>,不含货物的卸货和买方工厂内的就位费。)</p>
</p>
<p>
4.交货时间、地点及运输:
<p>(1)交货时间:卖方应于收到订单之日起<span t-field="o.delivery_time"/>内发货,并告知买方运单信息。</p>
<p>(2)交付地点:<span t-field="o.destination_address"/>【 注:如我方负责运输,通常交货地点为买方指定地点】</p>
<p>(3)运输:<span t-field="o.shipping_method"/>,买方签收之日,视为货物已交付买方。</p>
<p>(4)货物的所有权在买方支付完全部货款后转移给买方。</p>
</p>
<p>
5.买方在收到货物后【7】日内予以验收的,并签发验收确认单;若【7】日未予验收,视为验收合格。
</p>
<p>
6.支付条款:
<p>(1)交易条款:<span t-field="o.transaction_rule"/></p>
<p>(2)卖方账号为:
<p><span t-field="o.sale_company.name"/></p>
<p>开户行:<span t-field="o.sale_company.bank"/> </p>
<p>账 号:<span t-field="o.sale_company.bank_number"/></p>
<!-- <p>卖方收到全部货款及买方开票信息后,向买方开具增值税专用发票。</p> -->
</p>
</p>
<p>
7.违约责任:
<p>乙方逾期付款的,应按照每日合同总金额的千分之一支付违约金。</p>
</p>
<p>
8.换货:
<p>经买方验收发现货物存在质量问题的,应及时通知卖方,卖方在核实无误后应按以下程序处理:</p>
<p>1)若货物生产商为注册于中国国内(为本合同之目的,中国不包含香港、澳门和台湾)的公司,卖方应负责及时换货;</p>
<p>2)若货物生产商为注册于中国国外的公司,卖方应负责协调买方向生产商调换货物。</p>
</p>
<p>
9.知识产权:
<p>货物中所包含知识产权归卖方所有,买方不得以任何形式将货物中所包含的知识产权(包括但不限于专利权;软件著作权;软件、技术文档、技术规范及/ 或软件的任何数据或程序等商业和技术秘密)向任何第三方明示或暗示地披露、提供或以任何方式加以利用。买方承诺不会通过反向工程的方式获取货物中的知识产权信息。</p>
</p>
<p>
10.备注:
<p>(1)本合同壹式贰份,双方各执壹份为凭。本合同将在双方签字后生效。</p>
<p>(2)因本合同履行产生争议的,交由卖方所在地人民法院管辖。</p>
</p>
</div>
<br/>
<br/>
<div class="row unovo-report-purchase-footer">
<div class="col-xs-6" style="width: 50%;text-align: left;">
<strong>买方代表签名:</strong><br/>
</div>
<div class="col-xs-6">
<strong>卖方代表签名</strong><br/>
</div>
</div>
<br/>
<br/>
<br/>
<div class="row unovo-report-purchase-footer">
<div class="col-xs-6" style="width: 50%;text-align: left;">
<strong>盖章:</strong>
</div>
<div class="col-xs-6">
<strong>盖章:</strong>
</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>