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

  • 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 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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
        • A Offline
          A Offline
          Aolanbo
          replied to handen on last edited by
          #4

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Aolanbo
            replied to 无梦丶无痕 on last edited by
            #5

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

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Aolanbo
              replied to 无梦丶无痕 on last edited by
              #6

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

              H 1 Reply Last reply
              0
              • H Offline
                H Offline
                hui
                replied to Aolanbo on last edited by
                #7

                @Aolanbo

                <field name="owner" options="{'no_create_edit': 1, 'no_create': 1}"/>
                
                A Y 2 Replies Last reply
                0
                • A Offline
                  A Offline
                  Aolanbo
                  replied to hui on last edited by
                  #8

                  @hui 不会啊,不知道怎么改代码!:baby_light_skin_tone:

                  H 1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hui
                    replied to Aolanbo on last edited by
                    #9

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

                    A 1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Aolanbo
                      replied to hui 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
                          • Y Offline
                            Y Offline
                            yagon
                            replied to hui on last edited by
                            #13

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

                            1 Reply Last reply
                            0

                            • Login

                            • Don't have an account? Register

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