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 开发与实施交流
7 Posts 5 Posters 8.1k Views 1 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.
  • G Offline
    G Offline
    ghotiv
    wrote on last edited by
    #1

    想在odoo中实现 组合价格 的功能,比如3A(优惠3)+ 2B(优惠2)= C 一起优惠 13
    方案一:
    请教了下gavin,gavin建议利用生产中产品bom的功能,订单中 临时完成生产,组合出C产品

    这样要安装生产模块

    方案二:
    如果不安装生产模块,自己bom仿照设计模型sale_bom
    sale.bom 里面存组合产品C的信息,有产品对象product_id,bom_line_ids
    sale.bom.line  里面存组成产品的i信息A和B,有product_id,bom_id (外键到sale_bom)

    这样订单里面每次要读sale_bom信息,然后生成C

    [attachimg=3]

    方案三:
    请教了严总,实现累似 multi image 的功能,就用 multi_image 一个字段,保存产品组合优惠的信息,类似json的格式存取组合信息
    这样虽然数据库简单了,但是要用到qweb和js,界面就复杂了

    方案四:
    发现product images这个模块,是product 一对多 image 的实现,image 保存tile,descrption字段,类似,image保存产品A和B的信息,
    那么怎么保存产品A和产品B的信息,字符字段保存A的id或者sku? 那么界面上又该怎么设计选择产品,然后保存id或者sku

    [attachimg=4]

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ccdos
      wrote on last edited by
      #2

      把 图插进去啊

      我qq 给你的提示 不是很清楚嘛

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrshelly
        wrote on last edited by
        #3

        最正统的, 还是生产比较好.............

        1 Reply Last reply
        0
        • J Offline
          J Offline
          james.168163.com
          wrote on last edited by
          #4

          -------------------
          方案一:
          请教了下gavin,gavin建议利用生产中产品bom的功能,订单中 临时完成生产,组合出C产品
          -------------------

          很想了解,这里的临时完成生产,我想应该指的自动化,怎么设置才能自动完成。

          1 Reply Last reply
          0
          • G Offline
            G Offline
            ghotiv
            wrote on last edited by
            #5

            临时完成生产 要自己写方法的

            1 Reply Last reply
            0
            • L Offline
              L Offline
              llccluf
              wrote on last edited by
              #6
              1. 虚拟bom可以用,没问题。

                2. 我们公司也有模块 product_bundle, apps上应该有。
              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