Untitled
unknown
plain_text
18 days ago
3.9 kB
3
Indexable
Never
<t t-name="web.external_layout_boxed"> <div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style"> <div class="o_boxed_header"> <div class="row mb8"> <div class="col-6"> <img t-if="company.logo" t-att-src="image_data_uri(company.logo)" alt="Logo" style="width: 100px; height: 100px; border: none; text-decoration: none;"/> </div> <div class="col-6 text-end mb4"> <div class="mt0 h4" t-if="company.report_header" t-field="company.report_header">Company tagline</div> <div name="company_address" class="float-end mb4"> <ul class="list-unstyled" name="company_address_list"> <li t-if="company.is_company_details_empty"><span t-field="company.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"> <div class="bg-light border-1 rounded h-100 d-flex flex-column align-items-center justify-content-center p-4 w-100 opacity-75 text-muted text-center"> <strong>Company address block</strong> <div>Contains the company address.</div> </div> </span></li> <li t-else=""> <span t-field="company.company_details"> <div class="bg-light border-1 rounded h-100 d-flex flex-column align-items-center justify-content-center p-4 w-100 opacity-75 text-muted text-center"> <strong>Company details block</strong> <div>Contains the company details.</div> </div> </span> </li> <li t-if="not forced_vat"/> <li t-else=""> <t t-esc="company.country_id.vat_label or 'Tax ID'">Tax ID</t>: <span t-esc="forced_vat">US12345671</span> </li> </ul> </div> </div> </div> </div> </div> <div t-attf-class="article o_report_layout_boxed o_company_#{company.id}_layout {{ 'o_report_layout_background' if company.layout_background in ['Geometric', 'Custom'] else '' }}" t-attf-style="background-image: url({{ 'data:image/png;base64,%s' % company.layout_background_image.decode('utf-8') if company.layout_background_image and company.layout_background == 'Custom' else '/base/static/img/bg_background_template.jpg' if company.layout_background == 'Geometric' else ''}});" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')"> <div class="pt-5"> <!-- This div ensures that the address is not cropped by the header. --> <t t-call="web.address_layout"/> </div> <t t-out="0"/> </div> <div t-attf-class="footer o_boxed_footer o_company_#{company.id}_layout"> <div class="text-center"> <div t-field="company.report_footer">Company Report Footer</div> <div t-if="report_type == 'pdf'"> Page: <span class="page"/> / <span class="topage"/> </div> <div t-if="report_type == 'pdf' and display_name_in_footer" class="text-muted"> <span t-out="o.name">(document name)</span> </div> </div> </div> </t>
Leave a Comment