~credativ/openobject-addons/elico-7.0-fixes

« back to all changes in this revision

Viewing changes to delivery_routes/report.xml

  • Committer:
  • Date: 2013-09-09 09:06:00 UTC
  • mfrom: (3.2.1 elico-7.0)
  • Revision ID: elicoidal@hotmail.com-20130909090600-ca5wvn9l8npx01w5
[ADD] several new modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<openerp>
 
3
    <data>
 
4
        <record id="ir_header_webkit_packing_list" model="ir.header_webkit">
 
5
            <field eval="&quot;&quot;&quot;Portrait&quot;&quot;&quot;" name="orientation"/>
 
6
            <field eval="&quot;&quot;&quot;A4&quot;&quot;&quot;" name="format"/>
 
7
            <field eval="&quot;&quot;&quot;PackingList&quot;&quot;&quot;" name="name"/>
 
8
            <field eval="15.0" name="margin_top"/>
 
9
            <field name="footer_html"><![CDATA[<html>
 
10
    <head>
 
11
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
 
12
        <script>
 
13
            function subst() {
 
14
            var vars={};
 
15
            var x=document.location.search.substring(1).split('&');
 
16
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
 
17
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
 
18
            for(var i in x) {
 
19
            var y = document.getElementsByClassName(x[i]);
 
20
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
 
21
                }
 
22
            }
 
23
        </script>
 
24
    </head>
 
25
    <body style="border:0; margin: 0;font-size:12px; bottom: 40px;" onload="subst()">
 
26
                <table class="basic_table" width="100%">
 
27
                <tr>
 
28
                    <td width="10%"><b>备注</b></td><td width="80%">1.拿货前请先确认是否有以下货物并勾选(干货蔬果,冰冻货物,熟食,饼房)</td>
 
29
                </tr>
 
30
                <tr>
 
31
                    <td width="10%"></td><td width="80%">2.支付方式简写 现金C,刷卡P,不收钱NC,券Q(配送结束时填写)</td>
 
32
                </tr>
 
33
                <tr>
 
34
                    <td width="10%"></td><td width="80%">3.配送结果有以下几种:1:配送成功。2:没有收钱。3:部分退货.4:改时间送。(配送结束时填写)</td>
 
35
                </tr>
 
36
                </table>
 
37
    </body>
 
38
</html>]]></field>
 
39
            <field name="html"><![CDATA[<html>
 
40
    <head>
 
41
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
 
42
        <script>
 
43
            function subst() {
 
44
            var vars={};
 
45
            var x=document.location.search.substring(1).split('&');
 
46
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
 
47
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
 
48
            for(var i in x) {
 
49
            var y = document.getElementsByClassName(x[i]);
 
50
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
 
51
                }
 
52
            }
 
53
        </script>
 
54
        <style type="text/css">
 
55
            ${css}
 
56
        </style>
 
57
    </head>
 
58
    <body style="border:0; margin: 0;" onload="subst()">
 
59
        <table style="border: 0; width: 100%">
 
60
                <tr>
 
61
                        <td width="57%">
 
62
                                <table class="header" style="border-bottom: 0px solid black; width: 100%">
 
63
                                    <tr>
 
64
                                        <td>${company.partner_id.name |entity}</td>
 
65
                                        <td/>
 
66
                                    </tr>
 
67
                                    <tr>
 
68
                                        <td >${company.partner_id.street or ''|entity}</td>
 
69
                                        <td/>
 
70
                                    </tr>
 
71
                                    <tr>
 
72
                                        <td>Phone/电话: ${company.partner_id.phone or ''|entity} </td>
 
73
                                        <td/>
 
74
                                    </tr>
 
75
                                </table>
 
76
                        </td>
 
77
                        <td>
 
78
                                <table class="header" style="border-bottom: 0px solid black; width: 100%">
 
79
                                    <tr>
 
80
                                        <td>Fields China</td>
 
81
                                        <td/>
 
82
                                    </tr>
 
83
                                    <tr>
 
84
                                        <td>HuangShi Road 169 Lane, Number 5, 1st Floor</td>
 
85
                                        <td/>
 
86
                                    </tr>
 
87
                                    <tr>
 
88
                                        <td >Xuhui District, Shanghai</td>
 
89
                                        <td/>
 
90
                                    </tr>
 
91
                                </table>
 
92
                        </td>
 
93
                <tr>
 
94
        </table> ${_debug or ''|n} </body>        
 
95
</html>]]>
 
96
</field>
 
97
                        <field name="css" ><![CDATA[
 
98
body {
 
99
        font-family:Helvetica;
 
100
        font-size:12px;
 
101
}
 
102
 
 
103
 
 
104
.dest_address {
 
105
        margin-left:60%;
 
106
        font-size:12px;
 
107
}
 
108
 
 
109
.header {
 
110
        margin-left:0;
 
111
        text-align:left;
 
112
        width:300px;
 
113
        font-size:12px;
 
114
}
 
115
 
 
116
.title {
 
117
        font-size:16px;
 
118
        font-weight: bold;
 
119
        text-align: center;
 
120
}
 
121
 
 
122
 
 
123
.basic_table{
 
124
        text-align:center;
 
125
        border-collapse: collapse;
 
126
}
 
127
 
 
128
.basic_table td {
 
129
        border:1px solid lightGrey;
 
130
        font-size:12px;
 
131
}
 
132
 
 
133
.list_table {
 
134
        border-color:black;
 
135
        text-align:center;
 
136
        border-collapse: collapse;
 
137
}
 
138
 
 
139
.list_table td {
 
140
        border-color:gray;
 
141
        border-top:1px solid gray;
 
142
        text-align:left;
 
143
        font-size:12px;
 
144
        padding-right:3px
 
145
        padding-left:3px
 
146
        padding-top:3px
 
147
        padding-bottom:3px
 
148
}
 
149
 
 
150
.list_table th {
 
151
        border-bottom:2px solid black;
 
152
        text-align:left;
 
153
        font-size:12px;
 
154
        font-weight:bold;
 
155
        padding-right:3px
 
156
        padding-left:3px
 
157
}
 
158
 
 
159
.list_tabe thead {
 
160
    display:table-header-group;
 
161
}
 
162
 
 
163
.header_label {
 
164
        width: 19%;
 
165
}
 
166
 
 
167
td {
 
168
        padding: 0 3px;
 
169
        text-align:left;
 
170
    font-size: 12px;
 
171
}
 
172
 
 
173
table.noborder, table.noborder tr, table.noborder tr td, tr.noborder, tr.noborder td, td.noborder {
 
174
        border: none;
 
175
}
 
176
 
 
177
.dontcutme {
 
178
        page-break-inside: avoid;
 
179
}
 
180
 
 
181
.total {
 
182
        width:100%;
 
183
}
 
184
.lib {
 
185
width:10.3%;
 
186
}
 
187
.tot {
 
188
text-align:right;
 
189
width:15%;
 
190
}
 
191
.lefttot {
 
192
width:74%;
 
193
}
 
194
.tax {
 
195
width:50%;
 
196
}]]> </field>
 
197
        </record>
 
198
        
 
199
        <report id="report_picking_groupby" name="picking.groupby.print" string="Grouped Picking Order" model="stock.picking.out" 
 
200
            file="fc_product_stock_type/report/picking_groupby.mako" report_type="webkit" auto="False" header="True" menu="True" webkit_header="ir_header_webkit_packing_list"/>
 
201
 
 
202
        
 
203
        <record id="stock.view_picking_out_form" model="ir.ui.view">
 
204
            <field name="name">stock.picking.out.form</field>
 
205
            <field name="model">stock.picking.out</field>
 
206
            <field name="inherit_id" ref="stock.view_picking_form"/>
 
207
            <field name="arch" type="xml">
 
208
                <field name="date_done" position="attributes" version="7.0">
 
209
                    <attribute name="string">Date of Delivery</attribute>
 
210
                </field>
 
211
                <xpath expr="/form/header//button[@name='%(stock.act_stock_return_picking)d']" position="replace">
 
212
                    <button name="%(report_picking_groupby)d" string="Print Delivery Slip" type="action" states="done" class="oe_highlight"/>
 
213
                    <button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action"/>
 
214
                </xpath>
 
215
                <xpath expr="/form/header//button[@name='draft_validate']" position="replace">
 
216
                    <button name="draft_validate" states="draft" string="Confirm &amp; Deliver" type="object" class="oe_highlight"/>
 
217
                    <button name="action_assign" states="confirmed" string="Check Availability" type="object" class="oe_highlight"/>
 
218
                </xpath>
 
219
                <xpath expr="/form/header//button[@name='action_process']" position="replace">
 
220
                    <button name="action_process" states="assigned" string="Deliver" type="object" class="oe_highlight"/>
 
221
                </xpath>
 
222
                <xpath expr="/form/header//field[@name='state']" position="replace">
 
223
                    <field name="state" nolabel="1" readonly="1" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"auto":"blue", "confirmed":"blue"}'/>
 
224
                </xpath>
 
225
                <xpath expr="//field[@name='partner_id']" position="replace">
 
226
                    <field name="partner_id" on_change="onchange_partner_in(partner_id)"  string="Customer"/>
 
227
                </xpath>
 
228
                <xpath expr="//field[@name='move_lines']" position="replace">
 
229
                    <field name="move_lines" context="{'address_out_id': partner_id, 'picking_type': 'out', 'form_view_ref':'view_move_picking_form', 'tree_view_ref':'view_move_picking_tree'}"/>
 
230
                </xpath>
 
231
                <xpath expr="/form/sheet" position="after">
 
232
                    <div class="oe_chatter">
 
233
                        <field name="message_follower_ids" widget="mail_followers"/>
 
234
                        <field name="message_ids" widget="mail_thread"/>
 
235
                    </div>
 
236
                </xpath>
 
237
            </field>
 
238
        </record>        
 
239
        </data>
 
240
</openerp>
 
 
b'\\ No newline at end of file'