首页 > 解决方案 > 如何在 qweb 报告上增加公司徽标图像大小

问题描述

我不知道如何在 qweb 报告上增加公司徽标。这是报告。 在此处输入图像描述

如何在图片左上角增加公司标志?

标签: pythonxmlodooodoo-13

解决方案


当公司中没有设置文档模板(定义标题的地方)并且使用max-height属性限制图像的高度时, Odoo 将调用 web external_layout_standard 。

尝试使用 style 属性增加标签max-height上的定义。img

例子:

<template id="external_layout_custom_img_style" inherit_id="web.external_layout_standard">
    <xpath expr="//div[hasclass('col-3')]/img" position="attributes">
        <attribute name="style">max-height: 64px;</attribute>
    </xpath>
</template>

推荐阅读