Ciao Niko e grazie dell'aiuto.
il problema è proprio quello, non mi da errore e mi mette sempre le intestazioni di camptocamp e il logo camptocamp!!!
Ecco l'
header:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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>
<style type="text/css">
<!--
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
margin: 0;
padding: 0;
color: #000;
}
table, th, td {
border: 0px;
margin: 0;
padding:0;
border-collapse:collapse;
}
.intestazione {
font-size:9px;
color:#666;
}
.left-align {
text-align: left;
}
.right-align {
text-align: left;
}
.center-align {
text-align:center;
}
.header {
widt: 100%;
}
.logo {
width: 300px;
}
.bold {
font-weight: 800;
}
.font14 {
font-size: 14px;
}
.width50 {
width: 50%;
}
-->
</style></head>
<body>
<table class="header">
<tr>
<td class="center-align logo">${helper.embed_logo_by_name('logo_fanuele_1905', width=250, height=95)|n}</td>
<td class="center-align">
<table class="intestazione center-align">
<tr>
<td>${company.partner_id.name |entity}</td>
</tr>
<tr>
<td>${company.partner_id.address and company.partner_id.address[0].street or '' |entity}</td>
</tr>
<tr>
<td>${company.partner_id.address and company.partner_id.address[0].zip or '' |entity} ${company.partner_id.address and company.partner_id.address[0].city or '' |entity}</td>
</tr>
<tr>
<td>Tel: ${company.partner_id.address[0].phone |entity} - Fax: ${company.partner_id.address[0].fax|entity}</td>
</tr>
<tr>
<td>${company.partner_id.address and company.partner_id.address[0].email or '' |entity}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
il
body:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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>
<style type="text/css">
${css}
</style></head>
<body>
% for pick in object:
<% setLang(pick.partner_id.lang) %>
<table class="header">
<tr>
<td class="bold font14 width50 left-align">
% if pick.type == 'in':
Carico nr. ${pick.name} del ${formatLang(pick.date, date=True)|entity}
% endif
% if pick.type == 'out':
Scarico nr. ${pick.name} del ${formatLang(pick.date, date=True)|entity}
% endif
% if pick.origin:
- Rif. ${pick.origin)
% endif
</td>
<td class="width50 right-align bold">
<table>
<tr>
<td>${pick.partner_id.name}</td>
</tr>
% if pick.partner_id.address :
<tr>
<td>${pick.partner_id.address[0].street or ''|entity}</td>
</tr>
<tr>
<td>${pick.partner_id.address[0].zip|entity} ${pick.partner_id.city|entity}</td>
</tr>
<tr>
<td>Tel.: ${pick.partner_id.address[0].phone|entity} ${'Fax: ' + pick.partner_id.address[0].fax|entity}</td>
</tr>
% endif
</table>
</td>
</tr>
</table>
<table>
<tr>
<td>
</td>
</tr>
</table>
<p style="page-break-after:always;"></p>
% endfor
</body>
</html>
il footer ancora non ce lo ho messo.
il modulo data.xml per l'inserimento non lo posto che è troppo lungo. Se vuoi vedere qualche altro pezzo chiedi pure!!
Con questo codice non mi prende il mio logo, ne il mio header. Continua a inserirci quelli della camptocamp
Lo usa solo se modifico "Base Sample" che mi inserisce report_webkit
grazie di nuovo