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中上传图片到七牛,求解决方案

在odoo中上传图片到七牛,求解决方案

Scheduled Pinned Locked Moved Odoo 开发与实施交流
8 Posts 5 Posters 7.4k Views
  • 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.
  • Y Offline
    Y Offline
    yyhaxx
    wrote on last edited by
    #1

    我先在有一个需求
    0_1498186727913_02e939a7-4d48-423e-82e2-d125ad9fbd0a-image.png
    希望大家给个解决方案

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Siyuan
      wrote on last edited by
      #2

      七牛云如果有提供图片上传api的话,应该不麻烦把

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Siyuan
        wrote on last edited by
        #3

        https://renjie.me/2016/09/10/odoo-form-view-pic-url-widget

        这里有个方案是写个显示图片url 的widget(不是将图片上传到对应的网站)

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

          这个应该不复杂。看看这个将附件保存到Amazon S3的例子吧:
          https://github.com/tvanesse/odoo-s3

          希望你最后能共享你的解决方案

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

          Y 1 Reply Last reply
          0
          • S Siyuan

            https://renjie.me/2016/09/10/odoo-form-view-pic-url-widget

            这里有个方案是写个显示图片url 的widget(不是将图片上传到对应的网站)

            Y Offline
            Y Offline
            yyhaxx
            wrote on last edited by
            #5

            @Siyuan 感谢大神

            1 Reply Last reply
            0
            • D digitalsatori

              这个应该不复杂。看看这个将附件保存到Amazon S3的例子吧:
              https://github.com/tvanesse/odoo-s3

              希望你最后能共享你的解决方案

              Y Offline
              Y Offline
              yyhaxx
              wrote on last edited by 卓忆
              #6

              @digitalsatori 感谢,感谢,我再研究研究

              1 Reply Last reply
              0
              • jefferyJ Offline
                jefferyJ Offline
                jeffery
                wrote on last edited by
                #7

                要求他们出 addons

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  prowong
                  wrote on last edited by
                  #8

                  将默认的存储换成七牛的。
                  请参考
                  https://github.com/glasslion/django-qiniu-storage

                  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