如何在qweb报表上增加公司徽标图像大小

2024-05-20 21:37:38 发布

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

我不知道如何在qweb报告中增加公司徽标。 这是报告。 enter image description here

如何增加图片左上角的公司徽标


Tags: 报告图片公司qweb徽标
1条回答
网友
1楼 · 发布于 2024-05-20 21:37:38

当文档模板未在公司中设置(其中定义了标题)并且图像的大小使用max-height属性在高度上受到限制时,Odoo将调用web external_layout_standard

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

示例:

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

相关问题 更多 >