在odoo 12中更改销售订单报价预览页

2024-05-17 05:27:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试对销售订单报价的预览页进行更改。我需要用一些东西来替换页面上的“由奥多提供动力的徽标”其他。这里是页面的屏幕截图。Image with the logo

我试图在addons文件夹中找到销售中的页面和相关模块。 尝试grep-rnw'/path/to/addons/'-e'Odoo Logo'来查找视图,但对视图中的行进行注释没有用什么都行。怎么办是否创建了此预览页?如何更改此页?在


Tags: 模块topathodoo订单文件夹视图屏幕
1条回答
网友
1楼 · 发布于 2024-05-17 05:27:17

您必须更改ID为“portal_record_sidebar”的QWeb模板。你可以在门户应用程序中找到。在

在Odoo代码中有很多关于如何扩展/更改QWeb客户端模板的例子。在

以下是来自Odoo module website_sale的随机示例:

<template id="website_sale.brand_promotion" inherit_id="website.brand_promotion">
    <xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
        <div class="o_brand_promotion">
            Powered by <a target="_blank" class="badge badge-danger" href="http://www.odoo.com/page/website-builder?utm_source=db&amp;utm_medium=website">Odoo</a>,
            the #1 <a target="_blank" href="http://www.odoo.com/page/e-commerce?utm_source=db&amp;utm_medium=website">Open Source eCommerce</a>.
        </div>
    </xpath>
</template>

相关问题 更多 >