Skip to Content
Menu
This question has been flagged
1 Reply
4412 Views

Hi,

can anyone please share sample qweb view 'external_layout_header' for Odoo 10 where logo is on the left corner and company info on the right ?


Thanks,

Carlo

Avatar
Discard
Author

I don't have enough karma to comment you answer.

Can you please expain how to create custom header layout so that this become complete answer.

Thanks

soon will be a module public available , and customized for croatia localization...

Best Answer

Hello Carlo Štefanac,

Add following xml code in custom header layout.

XML Code:

<template id="custom_external_layout_header">
    <div class="header">
        <div class="row">
            <div class="col-xs-9">
                <img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;" />
            </div>
            <div class="col-xs-3" name="company_address">
                <span t-field="company.partner_id" t-field-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: true}" style="border-bottom: 1px solid black; display:inline-block;" />
            </div>
        </div>
    </div>
</template>

 

Output: Qweb Pdf Report With Header.


Hope this will help you!

Thanks!

Avatar
Discard