首页 > 解决方案 > 在第一页 Qweb 之后的每一页的标题中包含文档编号

问题描述

如何在右侧添加与公司名称相同级别的页码

<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <template id="adjustment_document" inherit_id="sale.report_saleorder_document">

        <t t-call="report.external_layout"></t>

        </template>
    </data>
</odoo>

最好的方法是什么

谢谢 在此处输入图像描述

标签: odoo-11qweb

解决方案


我得到了答案

 <template id="page_external_layout_header" inherit_id="web.external_layout_standard">
            <xpath expr="//div[@class='header']/div[@class='row']/div[@name='company_address']" position="after">
              <div class="col-xs-2 text-muted pull-right"> 
                   <span class="page"/>
              </div>   
            </xpath>     
        </template>

在此处输入图像描述


推荐阅读