【问题标题】:Odoo Qweb report header overlapping bodyOdoo Qweb 报告标题重叠正文
【发布时间】:2020-07-16 06:36:57
【问题描述】:

我正在创建一个 Qweb 报告,它的标题取决于公司地址和母公司地址。此信息必须位于最终与正文内容重叠的细列中。有没有可以让body自动下移的css类?

【问题讨论】:

  • 你能分享一下截图吗?我认为您应该增加 Paper 格式的页眉空间。
  • 您可以在Technical -> Reporting -> Paper Format中使用纸张格式边距和页眉间距。

标签: odoo qweb odoo-13


【解决方案1】:

感谢@Kenly 和@Younis Mahsud,我能够通过更改字段“margin_top”和“header_spacing”的值来修复重叠。 我已经向我的模块添加了一个 xml 文件,该文件定义了我的特定标题间距和边距,如下所示:

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <record id="my_new_paper_format" model="report.paperformat">
        <field name="name">My custom paperformat</field>
        <field name="format">Letter</field>
        <field name="orientation">Portrait</field>
        <field name="margin_top">55</field>
        <field name="margin_bottom">10</field>
        <field name="margin_left">7</field>
        <field name="margin_right">7</field>
        <field name="header_line" eval="False"/>
        <field name="header_spacing">50</field>
        <field name="dpi">90</field>
        <field name="report_ids" eval="[(6, 0, [ref('report_action_id_1'), ref('report_action_id_2')])]"/>
    </record>

</odoo>

【讨论】:

  • 感谢分享,header_spacing 解决了我的问题。谢谢你。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多