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. odoo11嵌入自定义页面

odoo11嵌入自定义页面

Scheduled Pinned Locked Moved Odoo 开发与实施交流
9 Posts 3 Posters 7.9k Views 6 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

    在做odoo项目时,总会有一些功能odoo自己不能解决的,我们可以在odoo中嵌入自定义页面来解决。
    具体的方法是在添加菜单的时候使用自定义的action widget,在自定义的action widget 中指定对应的templates,而templates中可以嵌入iframe,也就是自己自定义的页面了,最后就是将自己写的widget在view中发布出去即可,这样就成功完成odoo自定义页面,当然这里一般还需要controller的接口配合处理数据和逻辑了。
    上面说明的是概述要做的事情,具体怎么实现可以参考下面我的截图。
    此截图主要看模块项目结构:
    0_1525417261111_3.png
    后面的图片是对应具体文件的截图:
    0_1525417435699_4.png
    0_1525417449412_5.png
    0_1525417455660_6.png
    0_1525417461539_7.png
    最后,我是一名odoo前端开发者,对odoo后端只是了解一点,主要是前端方面有些研究,一些widget、列表、列表按钮自定义、或是列表limit的自定义等有一些研究并在项目中实际使用,也比较熟悉odoo的网页制作开发,另外本人喜欢使用odoo,结合工业生产企业开发app应用,包括工业经常使用到的扫码或是条码使用app打印等功能开发,目前实际开发出一款app产品在大型上市公司(具体联系时说明)的车间使用app,如何需要合作自定义开发odoo页面活动app开发的,可以联系我。
    taony:15068334016 邮箱:[email protected]

    1 Reply Last reply
    1
    • 无
      无
      无梦丶无痕
      wrote on last edited by
      #2

      楼主您好,为什么我按照您这个写了之后, js中的 template: 'xxxx' 老是提示找不到后面的模板名

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

        最后有没有把代码注册到manifest里面,qweb。

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

          😂 😂 忘了,谢谢楼主

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

            😂 😂 忘了,谢谢楼主

            鲍
            鲍
            鲍永道
            wrote on last edited by
            #5

            @无梦丶无痕 嗯嗯,不客气。

            皓 1 Reply Last reply
            0
            • 鲍 鲍永道

              @无梦丶无痕 嗯嗯,不客气。

              皓
              皓
              皓羽如风
              wrote on last edited by
              #6

              @鲍永道 这就是Qweb吗?那存在大量文字的表格或者仅供参考的说明性表格是不是用Qweb来做比较好?

              鲍 1 Reply Last reply
              0
              • 皓 皓羽如风

                @鲍永道 这就是Qweb吗?那存在大量文字的表格或者仅供参考的说明性表格是不是用Qweb来做比较好?

                鲍
                鲍
                鲍永道
                wrote on last edited by
                #7

                @皓羽如风 自定义嵌入页面,页面。。。
                并不是qweb。。。

                皓 1 Reply Last reply
                0
                • 鲍 鲍永道

                  @皓羽如风 自定义嵌入页面,页面。。。
                  并不是qweb。。。

                  皓
                  皓
                  皓羽如风
                  wrote on last edited by
                  #8

                  @鲍永道 那两者之间的差异在什么地方,为什么不选odoo自带的Qweb方法呢?我因为也在写这么一个页面,发现有点相似,可是Qweb没有什么案例,看了你的方法,各文件之间的联系我没有很理解……

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

                    自定义页面开发只是在odoo不能实现的功能下才这么做的,我的分享中的代码就是odoo的功能不能实现业务需求,只能另外开发,但是又要在一个系统中使用,所以才这么做的。
                    要是odoo自己能实现的,就没有必要自定义啊。

                    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