accstock_report_views.xml
9.3 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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="acct_report_stock">
<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-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-content p {
margin:5px 0px;
}
.unovo-report-purchase-footer {
font-family:"DengXian";
line-height:22px;
font-size:16px;
}
</style>
<div class="page">
<!-- <div class="header">
<div class="row">
<div class="col-xs-3">
<span t-field="o.purchase_company.name"/>
</div>
</div>
</div> -->
<div class="row unovo-report-purchase-title">
<div class="col-xs-6" style="width: 50%;text-align: left;">
<br/>
<img t-att-src="'data:image/png;base64,%s' % logo" style="max-height: 2000px;width:170px"/>
</div>
<div class="col-xs-6" style="width: 50%;text-align: left;">
<div class="unovo-report-purchase-content">
<p>
<p><span t-field="o.so_obj.sale_company.name"/></p>
<p>上海市闵行区联航路1588号中心大道西路18栋</p>
<p>电话: 0086-21-6220 8090</p>
<p>传真:0086-21-5102 6636</p>
<p>邮箱: info@neotel-technology.com</p>
</p>
</div>
</div>
</div>
<br/>
<div class="unovo-report-purchase-title">出货单</div>
<br/>
<div class="unovo-report-purchase-content">
<p>
客户订单号:<span t-field="so_obj.partner_ponumber"/>
</p>
<p>
SO:<span t-field="so_obj.name"/>
</p>
<p>
出货日期:<span t-esc="partner_info.get('now_date', '')"/>
</p>
</div>
<br/>
<div class="unovo-report-purchase-content">
<div style="text-align:left">
<span style="float:left;width:50%">
出货公司:<span t-field="so_obj.sale_company"/>
</span>
<span style="float:left;width:50%">
收货公司:<span t-field="o.partner_id.name"/>
</span>
<span style="float:left;width:50%">
联系人:<span t-field="so_obj.user_id.name"/>
</span>
<span style="float:left;width:50%">
联系人:
</span>
<span style="float:left;width:50%">
联系电话:<span t-field="so_obj.user_id.phone"/>
</span>
<span style="float:left;width:50%">
联系电话:
</span>
<span style="float:left;width:50%">
&nbsp;
</span>
<span style="float:left;width:50%">
收货地址:<span t-field="o.partner_id.street"/>
</span>
</div>
</div>
<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>包装数量</strong>
</th>
</tr>
<tr t-foreach="so_obj.quotation_line" t-as="line">
<td class="text-center">
<span t-field="line.product_id.product_tmpl_id.name"/>
</td>
<td class="text-center">
<span t-field="line.product_id.product_tmpl_id.product_model"/>
</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.product_uom.name"/>
</td>
</tr>
</table>
<br/>
<br/>
<div class="unovo-report-purchase-content" >
<p>
运输方式:
</p>
<p>
物流单号:
</p>
<br/>
<br/>
<p>
客户签字:
</p>
<br/>
<p>
日期:
</p>
</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>