
Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn
由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解
本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!
开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号
如果您登录系统碰到问题,请在微信公众号留言:
Odoo qweb报表的头部高度 怎么修改。qweb pdf 输出前的html
-
1 qweb报表的头部高度 怎么修改。
我把 设置--》技术-》用户界面-》报表 --》external_layout_header 里面的内容全部删除,pdf报表头部还是有很大的空白留出来
2 qweb pdf 输出前的html 在哪里调试呢
===================
资料
初始化xml的文件 目录 \GreenOdoo-8.0-win32\source\addons\report\views
其中 layouts.xml 里面有。但是看不懂。 data_report_margin_top data_report_header_spacing 在哪里设置
<template id="layout" inherit_id="web.layout" primary="True">
<!-- Add report attributes -->
<xpath expr="//html" position="attributes">
<attribute name="t-att-data-report-margin-top">data_report_margin_top if data_report_margin_top else None</attribute>
<attribute name="t-att-data-report-header-spacing">data_report_header_spacing if data_report_header_spacing else None</attribute>
<attribute name="t-att-data-report-dpi">data_report_dpi if data_report_dpi else None</attribute>
</xpath>
<!-- Add report style -->
<xpath expr="//head" position="inside">
<link href="/web/static/lib/bootstrap/css/bootstrap.css" rel="stylesheet"/>
<link href="/website/static/src/css/website.css" rel="stylesheet"/>
<link href="/web/static/lib/fontawesome/css/font-awesome.css" rel="stylesheet"/>
<style type="text/css">
<t t-call="report.style"/>
</style>
</xpath>
<!-- Remove conflicting style -->
<xpath expr="//head/link[@href='/web/static/src/css/full.css']" position="replace"></xpath>
</template> -
问题 已经解决了。但是新的问题出来了
解决办法 。。纸张设置--》
新建纸张格式
名称 a4 sikumall
纸张尺寸 A4 0 210 x 297 毫米, 8.26 x 11.69 英寸
定位 景观
上边距(毫米) 5
下边距(毫米) 5
左边距(毫米) 5
右边距(毫米) 5
显示标题行
上边距 16(这个边距修改)
输出DPI 90
相关报表
采购订单 报价/订单
==========
步骤2 在对应的报表中,纸张设置 选择 新的纸张格式 a4 sikumall -
谢谢分享。
正好发现个翻译错误,
定位Orientation应该 为 纸张方向 ,景观Landscape(横),肖像Portrait(竖/纵),
我去官方翻译平台 修改下。 (嗯,发现8.0 已经是对的,9.0 我已修改)