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 Solved Odoo 开发与实施交流
3 Posts 2 Posters 2.6k Views 2 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.
  • 阿
    阿
    阿巴阿巴
    wrote on last edited by
    #1

    在一个表单内,不同的用户组对于同一个字段,实现只读或者编辑。没有想到怎么做,求教?

    保 1 Reply Last reply
    0
    • 阿 阿巴阿巴

      在一个表单内,不同的用户组对于同一个字段,实现只读或者编辑。没有想到怎么做,求教?

      保
      保
      保定_粉刷匠
      wrote on last edited by 保定_粉刷匠
      #2

      @阿巴阿巴 例如:要实现A用户组的成员对W字段只读,

      1)) 在模型里增加一个计算字段E,如is_in_A 来判断当前登录用户是否属于A用户组。
      2)在视图中增加此字段E
      3)在字段W中增加一个attrs,实现当E字段为True时,Readonly=1

      阿 1 Reply Last reply
      0
      • 保 保定_粉刷匠

        @阿巴阿巴 例如:要实现A用户组的成员对W字段只读,

        1)) 在模型里增加一个计算字段E,如is_in_A 来判断当前登录用户是否属于A用户组。
        2)在视图中增加此字段E
        3)在字段W中增加一个attrs,实现当E字段为True时,Readonly=1

        阿
        阿
        阿巴阿巴
        wrote on last edited by
        #3

        @保定_粉刷匠 谢谢,已搞定。

        1 Reply Last reply
        0
        • digitalsatoriD digitalsatori 将这个主题标记为已解决,在

        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