首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在qweb报表odoo9中添加自定义文本

在qweb报表odoo9中添加自定义文本
EN

Stack Overflow用户
提问于 2017-03-15 10:26:41
回答 1查看 173关注 0票数 0

如何在继承qweb中添加自定义文本?

例如,在Sale/view/report_saleorder.xml中

class="oe_structure"下面我需要一张桌子

代码语言:javascript
复制
<p t-field="doc.note" />
            <p t-if="doc.payment_term_id.note">
                <span t-field="doc.payment_term_id.note"/>
            </p>
            <p t-if="not doc.payment_term_id and doc.partner_id.property_payment_term_id">
                <span t-field="doc.partner_id.property_payment_term_id.note"/>
            </p>
            <p id="fiscal_position_remark" t-if="doc.fiscal_position_id and doc.fiscal_position_id.note">
                <strong>Fiscal Position Remark:</strong>
                <span t-field="doc.fiscal_position_id.note"/>
            </p>
            <div class="oe_structure"/>


    <xpath expr="???" position="???">
           <table><tr><td>CUSTOM TEXT</td></tr></table>
    </xpath>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-15 10:59:37

我不确定上面的xml是否是整个报告,但是您可以使用这样的东西。

代码语言:javascript
复制
<xpath expr="//div[@class='oe_structure'][last()]" position="after">
    <!-- YOUR TABLE HERE -->
</xpath>

这假设这是您正在继承的xml中oe_structure的最后一个实例。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42806998

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档