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. 视图标签页名称动态读取表记录

视图标签页名称动态读取表记录

Scheduled Pinned Locked Moved Odoo 开发与实施交流
7 Posts 4 Posters 8.5k 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.
  • T Offline
    T Offline
    tomp
    wrote on last edited by
    #1

          想要的效果:标签页动态读取表某列的内容作为标签名
          如:appraisal、internal notes、public notes是某表中的记录,
          显示效果:
    [attach=1]


    表a
    id  名字 上级
    a1  态度
    a2  能力
    a3  绩效
    a11  责任心  a1
    a12  主动性  a1
    a13  协作性  a1
    a14  意识    a1
    a15  自律    a1

    标签页:
      态度    能力    绩效
    [attach=2]

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

      在view所对应的对象中覆写fields_view_get方法,在方法中读取表A中对应字段的值再重建view定义并重新调用fields_view_get方法

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

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yurenjimi
        wrote on last edited by
        #3

        http://blog.sajolab.com/?p=24

        1 Reply Last reply
        0
        • D Offline
          D Offline
          digitalsatori
          管理员
          wrote on last edited by
          #4

          [quote author=yurenjimi link=topic=2398.msg8024#msg8024 date=1306725087]
          [检测到链接无效,已移除]
          [/quote]
          你好,你的博客已被 [检测到链接无效,已移除] 收录,所有与openerp相关的博客内容将被自动收集。感谢您的分享。

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

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yurenjimi
            wrote on last edited by
            #5

            请与 [email protected] 联系, 我只是分享了一下……

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wjfonhand
              wrote on last edited by
              #6

              嗯,此博客是 Joshua 写的,经验来自云实施团队的合并报表项目。

              GoodERP -- Odoo China fork

              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