Edi Santoso
Odoo and Python Developer
drink a tea to enjoying the life

odoo qweb report replace external_layout_header

create new module

    <template id="external_layout_header_inherit" inherit_id="report.external_layout_header">
      <xpath expr="//div[@class='header']" position="replace">
        <div class="header">
            <div class="row">
                <div class="col-xs-3">
                    <img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
                </div>
                <div class="col-xs-9 text-right" style="margin-top:20px;" t-field="company.rml_header1"/>
            </div>
            <div class="row zero_min_height">
                <div class="col-xs-12">
                    <div style="border-bottom: 1px solid black;"></div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-9" name="company_address">
                    <div t-field="company.partner_id"
                        t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}'
                        style="border-bottom: 1px solid black;"/>
                </div>
            </div>
        </div>
      </xpath>
    </template>