Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 开发与实施交流
  4. 关于relatorio_report模块,如何在空值的时候不占一行

关于relatorio_report模块,如何在空值的时候不占一行

Scheduled Pinned Locked Moved Odoo 开发与实施交流
4 Posts 2 Posters 4.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JoshuaJ Offline
    JoshuaJ Offline
    Joshua
    管理员
    wrote on last edited by
    #1

    我在使用社区里面oldrev兄的relatorio_report模块的时候,输出的报表如果只是使用

    o.name or ''
    


    这样的输出形式,如果那么值为空,则会在报表上占了一行

    我查看了OE默认的报表,发现很多都出现了这个方法[color=blue]removeParentNode('para')[/color]
    不知道是不是这个方法可以在空值的时候不占一行呢?
    在relatorio报表又怎么实现呢?
    谢谢大家

    【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

    1 Reply Last reply
    0
    • JoshuaJ Offline
      JoshuaJ Offline
      Joshua
      管理员
      wrote on last edited by
      #2

      经测试用IF 或者WHEN 可以实现
      eg.

      <br />&lt;when test=&quot;sale.state == &#039;quotation&#039;&quot;&gt;<br />Quotation N°: &lt;sale.reference&gt;<br />&lt;/when&gt;<br />
      

      【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

      1 Reply Last reply
      0
      • L Offline
        L Offline
        linyaohui
        wrote on last edited by
        #3

        路过围观,顶起

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Tags
        • Popular
        • Users
        • Groups