Xml 如何在odoo 12中自定义或向报表添加常用页眉和页脚?
如何在odoo 12中自定义或向报表添加常用页眉和页脚?我发现了四种类型的报告布局(背景、盒装、干净和标准)。但我无法添加页眉和页脚。有没有办法为odoo版本12中的所有报告添加通用页眉和页脚?您可以继承默认布局并根据需要修改它们Xml 如何在odoo 12中自定义或向报表添加常用页眉和页脚?,xml,report,qweb,odoo-12,Xml,Report,Qweb,Odoo 12,如何在odoo 12中自定义或向报表添加常用页眉和页脚?我发现了四种类型的报告布局(背景、盒装、干净和标准)。但我无法添加页眉和页脚。有没有办法为odoo版本12中的所有报告添加通用页眉和页脚?您可以继承默认布局并根据需要修改它们 <template id="web_external_layout_iherited" inherit_id="web.external_layout_standard" customize_show="True" n
<template id="web_external_layout_iherited"
inherit_id="web.external_layout_standard" customize_show="True"
name="Automatic Header">
<xpath expr="//div[@class='header']" position="replace">
</xpath>
</template>
您需要在以下位置覆盖原始页眉和/或页脚: