[14.0][MIG] report_layout_config

This commit is contained in:
Iryna Vyshnevska
2021-12-30 10:58:06 +02:00
parent c591573301
commit 1468fb3237
6 changed files with 11 additions and 43 deletions

View File

@@ -85,25 +85,5 @@
/>
</div>
</template>
<!-- Same as odoo/src/odoo/addons/base/wizard/base_document_layout_views.xml -->
<!-- the footer and the t-if for other template color was removed -->
<!-- this template is used by the BaseDocumentLayout wizard to display a live preview of a dummy report -->
<template
id="layout_preview"
name="layout preview"
primary="True"
inherit_id="base.layout_preview"
>
<!-- compute some layout specific variables -->
<xpath expr="//div[hasclass('header')]" position="before">
<t t-if="company.full_header_img">
<t t-call="report_layout_config.header_image" />
</t>
</xpath>
<xpath expr="//div[hasclass('text-center')]" position="replace">
<t t-if="company.full_footer_img">
<t t-call="report_layout_config.footer_image" />
</t>
</xpath>
</template>
</odoo>