Community mailing list archives

community@mail.odoo.com

Re: Invoice number in Webkit Header

by
Apertoso, Jos De Graeve
- 09/01/2014 04:28:16
Hello Markus,


Put the body of your invoice report in a <section> tag and the code below will print a footer with the invoice number ( aka section title becauce the number is in a <h1> tag )

Should work for the header also.

Regards,
Jos


<!DOCTYPE >
<html>
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
        <script>
            function subst() {
                var vars={};
                var x=document.location.search.substring(1).split('&');
                for(var i in x) {
                    var z=x[i].split('=',2);
                    vars[z[0]] = unescape(z[1]);
                }
                var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
                for(var i in x) {
                    var y = document.getElementsByClassName(x[i]);
                    for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
                }
            }
        </script>
    </head>
    <body style="border:0; margin: 0;" onload="subst()">
        <div style="border-top: 1px solid black; width: 100%; text-align:center;font-size:10">
                %for part in company.rml_footer.split("\n"):
                    %if part:
                        ${part}<br/>
                    %endif
                %endfor
        </div>
        <div style="text-align:right;font-size:10;" width="95%" >
                <span class="section"> -- </span>
        </div>
    </body>
</html>


Jos De Graeve - Apertoso business ICT


Guido Gezellelaan 16 - B-9800 Deinze - Belgium
 
Direct: +32 9 381 64 51
General:+32 9 381 64 50
Mobile: +32 475 54 68 80
mail/im/skype: Jos.DeGraeve@apertoso.be - apertoso


2014-09-01 9:57 GMT+02:00 Markus Schneider <markus.schneider@initos.com>:
Hi everyone,

We need the Invoice number in the webkit header. As the header is global
if you print multi invoice it will be need to change the webkit module.
So has someone already done a patch that is possible to include invoice
number in the webkit header to print it on each page?

Just asking before we start coding.

Kind Regadrs

Markus

-- 
Dipl.-Comp.-Math. Markus Schneider
Softwareentwickler

initOS GmbH & Co. KG
An der Eisenbahn 1
21224 Rosengarten

Mobil:   +49 (0)172 2303699
Phone:   +49 (0)4105 5615613
Fax:     +49 (0)4105 5615610

Email:   markus.schneider@initos.com
Web:     http://www.initos.com

Geschäftsführung:
Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
Haftende Gesellschafterin: initOS Verwaltungs GmbH

Sitz der Gesellschaft: Rosengarten – Klecken
Amtsgericht Tostedt, HRA 201840
USt-IdNr: DE 275698169
Steuer-Nr: 15/205/21402

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe