python - 如何在 qweb 报告上增加公司徽标图像大小
解决方案
当公司中没有设置文档模板(定义标题的地方)并且使用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>
推荐阅读
- javascript - 优化对象数组的搜索
- javascript - 在 Webview 中使用 PDFJS 库在 Javafx 中显示 Pdf
- python - 我如何在此代码中收到语法错误?
- c# - 从异步方法进行服务调用时,线程被中止错误
- wpf - WPF/MVVM 应用程序中的 RDLC 报告。如何显示外部图像
- python - Confluent Kafka:流式传输网络摄像头提要时 Kafka Consumer 滞后
- algorithm - 优先区间调度算法
- java - Android 谷歌地图在生产中显示白屏
- sql - 选择和内连接中的 DB2 SQL If 语句
- javascript - 将双维数组传递给控制器