~nicolariolini/micronaet-production/trunk

« back to all changes in this revision

Viewing changes to production_working_bom/report/status_work.xml

  • Committer: thebrush
  • Date: 2015-01-30 07:42:37 UTC
  • Revision ID: thebrush@kenoby.micronaet.local-20150130074237-cb8ztk8ghc7t8e0r
Aggiunta modulo per gestire produzione, integrato alcune stampa
Punto di modifica query per integrare prodotti

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<openerp>
 
3
    <data><!--noupdate="1"-->
 
4
        <record id="header_webkit_status" model="ir.header_webkit">
 
5
            <field name="orientation">Portrait</field>
 
6
            <field name="format">A4</field>
 
7
            <field name="margin_top">20</field>
 
8
            <field name="html"><![CDATA[<html>
 
9
    <head>
 
10
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
 
11
        <script>
 
12
            function subst() {
 
13
                var vars={};
 
14
                var x=document.location.search.substring(1).split('&');
 
15
                for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
 
16
                var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
 
17
                for(var i in x) {
 
18
                var y = document.getElementsByClassName(x[i]);
 
19
                for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
 
20
                }
 
21
            }
 
22
        </script>
 
23
    </head>
 
24
    <body style="border:0; margin: 0;" onload="subst()">
 
25
    <% setLang(company.partner_id.lang or "it_IT") %>
 
26
    <h3>Piano dei consumi</h3><br/>
 
27
    </body>
 
28
</html>]]>
 
29
</field>
 
30
            <field name="footer_html"><![CDATA[<html>
 
31
    <head>
 
32
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
 
33
        <script>
 
34
            function subst() {
 
35
            var vars={};
 
36
            var x=document.location.search.substring(1).split('&');
 
37
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
 
38
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
 
39
            for(var i in x) {
 
40
            var y = document.getElementsByClassName(x[i]);
 
41
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
 
42
                }
 
43
            }
 
44
        </script>
 
45
    </head>
 
46
    <body style="border:0; margin: 0;" onload="subst()">
 
47
        <table style="border-top: 1px solid black; width: 100%">
 
48
            <tr >
 
49
                <td style="text-align:right;font-size:12;" width="95%">Page: <span class="page"/></td>
 
50
                <td style="text-align:left;font-size:12;"></td>
 
51
            </tr>
 
52
        </table>
 
53
    </body>
 
54
</html>]]></field><field name="css" ><![CDATA[
 
55
tr {
 
56
    page-break-inside: avoid;
 
57
}
 
58
thead{
 
59
    display: table-header-group; /* http://code.google.com/p/wkhtmltopdf/issues/detail?id=9#c8 */
 
60
}
 
61
]]> </field>
 
62
            <field  name="name">Material status report</field>
 
63
        </record>
 
64
        <report
 
65
            id="webkit_status_report"
 
66
            auto="False"
 
67
            model="mrp.production"
 
68
            name="webkitworkstatus"
 
69
            file="production_working_bom/report/status_work.mako"
 
70
            string="Material status"
 
71
            report_type="webkit"
 
72
            webkit_header="header_webkit_status"
 
73
            />
 
74
    </data>
 
75
</openerp>