Community mailing list archives
Re: A Qweb questionby
I realised that my question is probably not clear...
I need to do a header with two columns. (class="col-xs etc..")
On the left, the company logo, and on the right column, the company name, address etc...
The text in the right column is quite long (many lines). The logo (img) is aligned so that the bottom of the image, is at the same level of the bottom of the text
I am looking for a way to make the top border of the logo, be aligned with the top of the text ...
And, yes, I want this to be applied everywhere, so it is done by creating a custom layout, and using xpath to update the report.external_layout
It would be appreciated if anyone got any suggestion ....
On 26 August 2016 at 18:23, zahid jalal <email@example.com> wrote:
Hi @Dominiqueif you mean by align on top = make the image the highest possible, you can simply adjust top margin by either :- you change paper format margins in /report/data/report_
paperformat.xmlset the field <field name="margin_top">25</field> to your choice.- In layout xml file in /report/views/layout.xml , look for the header section , then adjust css margin propreties as you like<template id="external_layout_header"><div class="header"><div class="row"><div class="col-xs-8 col-xs-offset-2"><img t-if="company.logo" t-att-src="'data:image/png; base64,%s' % company.logo" style="max-height: 120px;"/></div></div></div></template>But this wil change and affect all your other reports. So as @Semah suggests , creating a custom layout is more suitable.rgrdsOn Fri, Aug 26, 2016 at 9:57 AM, Dominique KON SUN TACK <firstname.lastname@example.org >wrote:Thanks for replying, although that was not the question.The link is about the inheritance mechanism for qweb -The question is about how to make an image align on the top, when the image is in the header.Dominique KON-SUN-TACKOn 26 August 2016 at 16:38, Semah Raddaoui <email@example.com> wrote:
You can create a custom layout for your reports and call it in your report.
Check this subject https://www.odoo.com/forum/hel
p-1/question/can-t-manage-to-u se-a-custom-layout-in-odoo-8-9 8425
R.On Aug 25, 2016 12:17, "Dominique KON SUN TACK" <firstname.lastname@example.org
> wrote:Hi Guys,I have been trying unsuccessfully to change change the header of qweb reports...What I need to do, is to align on the top, the logo of the company, which appear on the header.vertical-align:top or text-top does not workWould anybody got a clue ?Dominique KON-SUN-TACK