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. Odoo 12 社区版 怎么隐藏 【创建并编辑】

Odoo 12 社区版 怎么隐藏 【创建并编辑】

Scheduled Pinned Locked Moved Odoo 新手求助
13 Posts 7 Posters 7.3k Views 8 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.
  • A Offline
    A Offline
    Aolanbo
    wrote on last edited by
    #1

    Odoo 12 社区版 在使用中经常错误创建产品,想把【创建】和 【创建并编辑】隐藏,并调整下拉列表显示的行数。 查了很多没有解决。哪位大侠能帮忙! 多谢!

    1 Reply Last reply
    0
    • H Offline
      H Offline
      handen
      wrote on last edited by
      #2

      你说的是不是左上角的那两个按钮,创建和编辑啊

      A 1 Reply Last reply
      0
      • 无 Offline
        无 Offline
        无梦丶无痕
        wrote on last edited by 无梦丶无痕
        #3

        options="{'no_create_edit': 1, no_create': 1}"字段上加上这两个属性

        A 2 Replies Last reply
        0
        • H handen

          你说的是不是左上角的那两个按钮,创建和编辑啊

          A Offline
          A Offline
          Aolanbo
          wrote on last edited by
          #4

          @handen 不是的。是选择商品下拉列表框里下边的两行。

          1 Reply Last reply
          0
          • 无 无梦丶无痕

            options="{'no_create_edit': 1, no_create': 1}"字段上加上这两个属性

            A Offline
            A Offline
            Aolanbo
            wrote on last edited by
            #5

            @无梦丶无痕 在哪里加? 不会弄呢!

            1 Reply Last reply
            0
            • 无 无梦丶无痕

              options="{'no_create_edit': 1, no_create': 1}"字段上加上这两个属性

              A Offline
              A Offline
              Aolanbo
              wrote on last edited by
              #6

              @无梦丶无痕 社区版是否可以添加这两属性。

              H 1 Reply Last reply
              0
              • A Aolanbo

                @无梦丶无痕 社区版是否可以添加这两属性。

                H Offline
                H Offline
                hui
                wrote on last edited by
                #7

                @Aolanbo

                <field name="owner" options="{'no_create_edit': 1, 'no_create': 1}"/>
                
                A Y 2 Replies Last reply
                0
                • H hui

                  @Aolanbo

                  <field name="owner" options="{'no_create_edit': 1, 'no_create': 1}"/>
                  
                  A Offline
                  A Offline
                  Aolanbo
                  wrote on last edited by
                  #8

                  @hui 不会啊,不知道怎么改代码!👶🏻

                  H 1 Reply Last reply
                  0
                  • A Aolanbo

                    @hui 不会啊,不知道怎么改代码!👶🏻

                    H Offline
                    H Offline
                    hui
                    wrote on last edited by
                    #9

                    @Aolanbo 这就是改好以后的,只要把字段名字换成你自己的就行。

                    A 1 Reply Last reply
                    0
                    • H hui

                      @Aolanbo 这就是改好以后的,只要把字段名字换成你自己的就行。

                      A Offline
                      A Offline
                      Aolanbo
                      wrote on last edited by Aolanbo
                      #10

                      @hui 不懂编程啊,在哪里调出代码,找到我要修改的字段呢?

                      1 Reply Last reply
                      0
                      • 鲍 Offline
                        鲍 Offline
                        鲍永道
                        wrote on last edited by
                        #11

                        字段replace然后对于对于加上属性就OK的。

                        1 Reply Last reply
                        0
                        • 丶 Offline
                          丶 Offline
                          丶Arthur
                          wrote on last edited by
                          #12

                          打开debug模式 然后查看你想要的修改的字段 记住他的名字 然后打开编辑器搜索xml视图中的这个字段
                          加上 options="{'no_create_edit': 1, 'no_create': 1}"

                          1 Reply Last reply
                          0
                          • H hui

                            @Aolanbo

                            <field name="owner" options="{'no_create_edit': 1, 'no_create': 1}"/>
                            
                            Y Offline
                            Y Offline
                            yagon
                            wrote on last edited by
                            #13

                            @hui 大佬,model的编辑和创建应该怎么改呢?比如:应付单状态是已完成,那么,我就要隐藏对发票的编辑按钮

                            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