如何在odoo 12中自定义或添加通用页眉和页脚到报表



如何在odoo 12中自定义或添加公共页眉和页脚到报告中?我发现了四种类型的报告布局(背景,盒装,干净和标准(。但我无法添加页眉和页脚。有没有办法为odoo版本12中的所有报告添加通用页眉和页脚?

您可以继承默认布局并根据需要对其进行修改

<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>

最新更新