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

« back to all changes in this revision

Viewing changes to delivery_plan/delivery_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_delivery_routes" 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;DeliveryRoutes&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;" onload="subst()">
 
26
        <table style="border-top: 1px solid black; font-size:8px; width: 100%; position:absolute;">
 
27
            <tr>
 
28
                    <td width="10%"><b>备注</b></td><td width="80%">1.拿货前请先确认是否有以下货物并勾选(干货蔬果,冰冻货物,熟食,饼房).     2.支付方式简写 现金 C,刷卡 P,不收钱 NC,券 Q(配送结束时填写)</td>
 
29
                </tr>
 
30
                <tr>
 
31
                    <td width="10%"></td><td width="80%">3.配送结果有以下几种:1:配送成功。2:没有收钱。3:部分退货.4:改时间送。(配送结束时填写)</td>
 
32
                </tr>
 
33
        </table>
 
34
    </body>
 
35
</html>]]></field>
 
36
                        <field name="html"><![CDATA[<html>
 
37
    <head>
 
38
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
 
39
        <script>
 
40
            function subst() {
 
41
            var vars={};
 
42
            var x=document.location.search.substring(1).split('&');
 
43
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
 
44
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
 
45
            for(var i in x) {
 
46
            var y = document.getElementsByClassName(x[i]);
 
47
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
 
48
                }
 
49
            }
 
50
        </script>
 
51
        <style type="text/css">
 
52
            ${css}
 
53
        </style>
 
54
    </head>
 
55
    <body style="border:0; margin: 0;" onload="subst()">
 
56
    ${_debug or ''|n} </body>        
 
57
</html>]]>
 
58
</field>
 
59
 
 
60
                        <field name="css" ><![CDATA[
 
61
body { font-family:Helvetica; font-size:12px; }
 
62
.title { font-size:16px; font-weight: bold; text-align: center; }
 
63
.basic_table{ text-align:center; border-collapse: collapse; }
 
64
.basic_table td { border:1px solid lightGrey; font-size:12px; }
 
65
td { padding: 0 3px; text-align:left; font-size: 12px; }
 
66
table.noborder, table.noborder tr, table.noborder tr td, tr.noborder, tr.noborder td, td.noborder { border: none; }
 
67
.dontcutme { page-break-inside: avoid; }]]> </field>
 
68
        </record>
 
69
 
 
70
        <report id="report_delivery_route_print" name="delivery.route.print" string="Delivery Route" model="delivery.route" 
 
71
            file="fc_delivery_plan/report/delivery_route_print.mako" report_type="webkit" auto="False" header = "True" menu="True" webkit_header="ir_header_webkit_delivery_routes"/>
 
72
    </data>
 
73
</openerp>
 
 
b'\\ No newline at end of file'