跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 开发与实施交流
  4. 中国财务报表模块会计凭证报表不整齐的问题解决方案

中国财务报表模块会计凭证报表不整齐的问题解决方案

已定时 已固定 已锁定 已移动 Odoo 开发与实施交流
9 帖子 6 发布者 5.6k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • KevinKongK 离线
    KevinKongK 离线
    KevinKong
    写于 最后由 编辑
    #1

    公司财务用到了中国财务模块,但在打印的时候有些地方需要调整,最初打印出来的模样是这样的:
    [img http://images.cnitblog.com/i/396990/201404/301530200808529.png /img]
    很明显,表中多余的3行没用,修改对应的account_move.rml文件,将相关的行注释掉,结果变成了这个样子:
    [img http://images.cnitblog.com/i/396990/201404/301531154399042.png /img]
    看起来比原来是好多了,但还有问题,数量跟是十亿千百的那块看起来还是很别扭,而且当一页包含多个凭证的时候,页尾就会跑到第二页上去。
    修改RML文件在blockTable中修改该行的行高:

    <blockTable colWidths="40,44,24,24,42,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0" style="表格2" rowHeights="0.5cm">
    


    rowHeights="0.5cm"即是控制该行行高的代码,看结果:
    [img http://images.cnitblog.com/i/396990/201404/301532372982417.png /img]
    本文的重点,也是花了我半天时间研究的问题来了,从图中可以看出来,行高是变了,但文字竟然没有跟着上去,还呆在原来的位置。
    看代码:

    &lt;blockTable colWidths=&quot;40,44,24,24,42,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0&quot; style=&quot;&#38;#x8868;&#38;#x683C;2&quot; rowHeights=&quot;0.5cm&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;font color=&quot;white&quot;&gt;&lt;/font&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;font color=&quot;white&quot;&gt;&lt;/font&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;单位&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;单价&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;数量&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;十&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;亿&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;千&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;佰&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;十&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;万&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;千&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;佰&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;十&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;元&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;角&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;分&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;十&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;亿&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;千&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;佰&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;十&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;万&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;千&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;佰&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;十&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;元&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;角&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para style=&quot;P1&quot;&gt;分&lt;/para&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/blockTable&gt;
    


    从代码上真的看不出为什么“数量” 跟后面的“十” 不在同一行,然后开始一点一点地注释,看结果,终于被我发现了。

    在该blockTable的样式表的代码中,注释掉<blockValign value="Top"/>一行,文字便跟着上去了:

    [&lt;blockTableStyle id=&quot;&#38;#x8868;&#38;#x683C;2&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;blockAlignment value=&quot;LEFT&quot;/&gt;<br />	&nbsp; &nbsp; &lt;!--&lt;blockValign value=&quot;Top&quot;/&gt;--没错,注释掉我,文字才会上去--&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;0,0&quot; stop=&quot;0,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;0,-1&quot; stop=&quot;0,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;1,0&quot; stop=&quot;1,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;1,-1&quot; stop=&quot;1,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;2,0&quot; stop=&quot;2,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEABOVE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;2,0&quot; stop=&quot;2,0&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;2,-1&quot; stop=&quot;2,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;3,0&quot; stop=&quot;3,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEABOVE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;3,0&quot; stop=&quot;3,0&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;3,-1&quot; stop=&quot;3,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;4,0&quot; stop=&quot;4,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEABOVE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;4,0&quot; stop=&quot;4,0&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;4,-1&quot; stop=&quot;4,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;5,0&quot; stop=&quot;5,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;5,-1&quot; stop=&quot;5,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;6,0&quot; stop=&quot;6,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;6,-1&quot; stop=&quot;6,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;7,0&quot; stop=&quot;7,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;7,-1&quot; stop=&quot;7,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;8,0&quot; stop=&quot;8,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;8,-1&quot; stop=&quot;8,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;9,0&quot; stop=&quot;9,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;9,-1&quot; stop=&quot;9,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;10,0&quot; stop=&quot;10,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;10,-1&quot; stop=&quot;10,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;11,0&quot; stop=&quot;11,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;11,-1&quot; stop=&quot;11,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;12,0&quot; stop=&quot;12,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;12,-1&quot; stop=&quot;12,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;13,0&quot; stop=&quot;13,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;13,-1&quot; stop=&quot;13,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;14,0&quot; stop=&quot;14,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;14,-1&quot; stop=&quot;14,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;15,0&quot; stop=&quot;15,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot; start=&quot;15,-1&quot; stop=&quot;15,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;16,0&quot; stop=&quot;16,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;16,-1&quot; stop=&quot;16,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;17,0&quot; stop=&quot;17,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;17,-1&quot; stop=&quot;17,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;18,0&quot; stop=&quot;18,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;18,-1&quot; stop=&quot;18,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;19,0&quot; stop=&quot;19,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;19,-1&quot; stop=&quot;19,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;20,0&quot; stop=&quot;20,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;20,-1&quot; stop=&quot;20,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;21,0&quot; stop=&quot;21,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;21,-1&quot; stop=&quot;21,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;22,0&quot; stop=&quot;22,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;22,-1&quot; stop=&quot;22,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;23,0&quot; stop=&quot;23,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;23,-1&quot; stop=&quot;23,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;24,0&quot; stop=&quot;24,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;24,-1&quot; stop=&quot;24,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;25,0&quot; stop=&quot;25,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;25,-1&quot; stop=&quot;25,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;26,0&quot; stop=&quot;26,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;26,-1&quot; stop=&quot;26,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;27,0&quot; stop=&quot;27,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;27,-1&quot; stop=&quot;27,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBEFORE&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;28,0&quot; stop=&quot;28,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEAFTER&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;28,0&quot; stop=&quot;28,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lineStyle kind=&quot;LINEBELOW&quot; colorName=&quot;#008000&quot; thickness=&quot;0.2&quot;&nbsp; start=&quot;28,-1&quot; stop=&quot;28,-1&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/blockTableStyle&gt;
    


    这是结果:
    [img http://images.cnitblog.com/i/396990/201404/301533572208932.png /img]

    但是我还是不知道为什么注释掉这行就可以让文字上去,而且,明显地看出来 实际上“数量”跟“十“还是不在同一水平线上,没找到在哪控制他们的位置的代码,另外吐槽一下关于RML的资料实在是太少了,很多都不知到什么意思,好在现在多少可以用了。希望模块的作者 Joshua 能解释下我的疑问。  😢

    1 条回复 最后回复
    0
    • C 离线
      C 离线
      ccdos
      写于 最后由 编辑
      #2

      三个空行 为嘛 拿掉 ?

      多行分录的凭证也很多的

      1 条回复 最后回复
      0
      • KevinKongK 离线
        KevinKongK 离线
        KevinKong
        写于 最后由 编辑
        #3

        [quote author=ccdos link=topic=16365.msg27948#msg27948 date=1398873727]
        三个空行 为嘛 拿掉 ?

        多行分录的凭证也很多的
        [/quote]

        因为感觉没什么用,会计这块不太懂,如果是多行的话,它自己也能循环打印出来,我试过多个的,它好像是一个分录一页,每页都带着后三个空行。

        1 条回复 最后回复
        0
        • wjfonhandW 离线
          wjfonhandW 离线
          wjfonhand
          写于 最后由 编辑
          #4

          不是固定空三行,是固定每页输出5行,补齐空白。

          GoodERP -- Odoo China fork

          1 条回复 最后回复
          0
          • digitalsatoriD 离线
            digitalsatoriD 离线
            digitalsatori 管理员
            写于 最后由 编辑
            #5

            [quote]另外吐槽一下关于RML的资料实在是太少了[/quote]
            这里是RML的语法说明:[attachurl=1]
            不过OpenERP只实现这个RML的一个子集,并不是所有的标签都支持。另外,8.0以后OpenERP会全面用Qweb report取代RMLreport。不过,看一下这个资料对你现在的报表调整还是有帮助的。

            【上海先安科技】(tony AT openerp.cn)

            1 条回复 最后回复
            0
            • 卓忆卓 离线
              卓忆卓 离线
              卓忆
              写于 最后由 编辑
              #6

              谢谢 分享,

              恬淡

              1 条回复 最后回复
              0
              • L 离线
                L 离线
                lihaihe
                写于 最后由 编辑
                #7

                <blockValign value="Top"/> 是表格的“垂直对齐方式”,你把它改成<blockValign value="Bottom"/>应该就可以了。

                1 条回复 最后回复
                0
                • 卓忆卓 离线
                  卓忆卓 离线
                  卓忆
                  写于 最后由 编辑
                  #8

                  [quote author=lihaihe link=topic=16365.msg29349#msg29349 date=1415853697]
                  <blockValign value="Top"/> 是表格的“垂直对齐方式”,你把它改成<blockValign value="Bottom"/>应该就可以了。
                  [/quote]

                  谢谢 ,

                  还有 这种: 不显示0的情况 怎么处理呢? 官网下的 7.0版本:

                  [attachimg=1]

                  恬淡

                  1 条回复 最后回复
                  0

                  • 登录

                  • 没有帐号? 注册

                  • 登录或注册以进行搜索。
                  • 第一个帖子
                    最后一个帖子
                  0
                  • 版块
                  • 标签
                  • 热门
                  • 用户
                  • 群组