Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
9671 Näkymät

I am trying to put 'Invoiced by' text on the top of the Footer in custom Invoice Report,

but as I define "footer" class there is always a horizontal line no matter what I do:

    

<div class="footer">
    <span>Invoiced: </span>
    <span t-field="o.user_id"/>
    ...
</div>

  

I couldn't find class 'footer' definition in CSS or else where, to remove the line.

I've tried to inherit original footer and create a new one, the same result,

What else could be done? (using Odoo v8, wkhtmltopdf v0.12.2.1

Avatar
Hylkää
Tekijä Paras vastaus

As I thought, somewhere in 'footer' class definition there is a border-top defined. My solution is to add this before qweb template:

<template id="report_my_style" inherit_id="report.style">
<xpath expr=".">
<t>
.footer {
border-top: none !important;
}
</t>
</xpath>
</template>
Avatar
Hylkää

I think this is a hack, theoretically it should work as I have described in my answer.

Paras vastaus

You can also inherit the Qweb view external_layout_footer and simply remove the style and make any changes you like, see:


Avatar
Hylkää
Tekijä

I've inherited external layout and removed style, but the line was still here. If I didn't, I had two lines. Style with border is defined somewhere outside Odoo scope - maybe in wkhtmltopdf....

Did you uncheck "Custom footer" in the company settings? I used to successfully change the external layout the same way, but only in version 9.0.

...and it is not necessary to define a footer class this way.

I meant a "new" footer class.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 15
5738
2
lokak. 22
6311
1
maalisk. 15
10839
1
maalisk. 15
4608
4
tammik. 25
44632